diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2020-03-23 15:50:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 15:50:54 -0400 |
commit | 37c62efad5132ef3dde2edcc122c47735db498a3 (patch) | |
tree | d87731d01a90235a7c6020bccd865eb48391b730 /pkgs/tools/admin | |
parent | d21cf30353369ff1facbc4af4a9fadd31934f0ca (diff) | |
parent | 5214b7244c72e2ae8b1607dae999456644671ab2 (diff) |
Merge pull request #81028 from mkg20001/ssh-import-id
ssh-import-id: init at 5.8
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r-- | pkgs/tools/admin/ssh-import-id/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/admin/ssh-import-id/default.nix b/pkgs/tools/admin/ssh-import-id/default.nix new file mode 100644 index 0000000000000..77d30e56d5fc3 --- /dev/null +++ b/pkgs/tools/admin/ssh-import-id/default.nix @@ -0,0 +1,36 @@ +{ buildPythonPackage +, stdenv +, 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 stdenv.lib; { + description = "Retrieves an SSH public key and installs it locally"; + license = licenses.gpl3; + maintainers = with maintainers; [ mkg20001 ]; + platforms = platforms.unix; + }; +} |