diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2020-02-25 15:59:34 +0100 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2020-02-26 13:15:33 +0100 |
commit | 5214b7244c72e2ae8b1607dae999456644671ab2 (patch) | |
tree | 4aa1e829b97b9306bab12d343a738a45a2576a01 /pkgs/tools | |
parent | b9f7819bd337491b0dda0ee6962653ef5d1a19b5 (diff) | |
download | nixlib-5214b7244c72e2ae8b1607dae999456644671ab2.tar nixlib-5214b7244c72e2ae8b1607dae999456644671ab2.tar.gz nixlib-5214b7244c72e2ae8b1607dae999456644671ab2.tar.bz2 nixlib-5214b7244c72e2ae8b1607dae999456644671ab2.tar.lz nixlib-5214b7244c72e2ae8b1607dae999456644671ab2.tar.xz nixlib-5214b7244c72e2ae8b1607dae999456644671ab2.tar.zst nixlib-5214b7244c72e2ae8b1607dae999456644671ab2.zip |
ssh-import-id: init at 5.8
Diffstat (limited to 'pkgs/tools')
-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 000000000000..77d30e56d5fc --- /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; + }; +} |