summary refs log tree commit diff
path: root/pkgs/tools/admin/ssh-import-id/default.nix
blob: 031bb316ca55f7b26b7b0358457f612c96b16219 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ buildPythonPackage
, lib
, fetchgit
, requests
, distro
, makeWrapper
, extraHandlers ? []
}:

buildPythonPackage rec {
  pname = "ssh-import-id";
  version = "5.11";

  src = fetchgit {
    url = "https://git.launchpad.net/ssh-import-id";
    rev = version;
    sha256 = "sha256-tYbaJGH59qyvjp4kwo3ZFVs0EaE0Lsd2CQ6iraFkAdI=";
  };

  propagatedBuildInputs = [
    requests
    distro
  ] ++ extraHandlers;

  nativeBuildInputs = [
    makeWrapper
  ];

  # handlers require main bin, main bin requires handlers
  makeWrapperArgs = [ "--prefix" ":" "$out/bin" ];

  meta = with lib; {
    description = "Retrieves an SSH public key and installs it locally";
    license = licenses.gpl3;
    maintainers = with maintainers; [ mkg20001 ];
    platforms = platforms.unix;
  };
}