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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
914 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
2022-05-02 13:01:46 +02:00
, installShellFiles
2020-02-25 15:59:34 +01:00
, 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
2022-05-02 13:01:46 +02:00
installShellFiles
2020-02-25 15:59:34 +01:00
];
2022-05-02 13:01:46 +02:00
postInstall = ''
installManPage $src/usr/share/man/man1/ssh-import-id.1
'';
2020-02-25 15:59:34 +01:00
# 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;
2022-05-02 13:02:27 +02:00
maintainers = with maintainers; [ mkg20001 viraptor ];
2020-02-25 15:59:34 +01:00
platforms = platforms.unix;
};
}