summary refs log tree commit diff
path: root/pkgs/tools/admin/ssh-import-id/default.nix
blob: b6ca3135f56158855b64518d787ffa9434f223d3 (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
{ buildPythonPackage
, lib
, fetchgit
, requests
, makeWrapper
, extraHandlers ? []
}:

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

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

  propagatedBuildInputs = [
    requests
  ] ++ 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;
  };
}