3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/ssh-import-id/default.nix

39 lines
778 B
Nix
Raw Normal View History

2020-02-25 14:59:34 +00:00
{ buildPythonPackage
, lib
2020-02-25 14:59:34 +00:00
, fetchgit
, requests
2021-02-26 02:07:07 +00:00
, distro
2020-02-25 14:59:34 +00:00
, makeWrapper
, extraHandlers ? []
}:
buildPythonPackage rec {
pname = "ssh-import-id";
2021-02-26 02:07:07 +00:00
version = "5.11";
2020-02-25 14:59:34 +00:00
src = fetchgit {
url = "https://git.launchpad.net/ssh-import-id";
rev = version;
2021-02-26 02:07:07 +00:00
sha256 = "sha256-tYbaJGH59qyvjp4kwo3ZFVs0EaE0Lsd2CQ6iraFkAdI=";
2020-02-25 14:59:34 +00:00
};
propagatedBuildInputs = [
requests
2021-02-26 02:07:07 +00:00
distro
2020-02-25 14:59:34 +00:00
] ++ extraHandlers;
nativeBuildInputs = [
makeWrapper
];
# handlers require main bin, main bin requires handlers
makeWrapperArgs = [ "--prefix" ":" "$out/bin" ];
meta = with lib; {
2020-02-25 14:59:34 +00:00
description = "Retrieves an SSH public key and installs it locally";
license = licenses.gpl3;
maintainers = with maintainers; [ mkg20001 ];
platforms = platforms.unix;
};
}