nixpkgs-suyu/pkgs/tools/admin/ssh-import-id/default.nix

39 lines
778 B
Nix
Raw Normal View History

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