Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, lib 3, fetchgit 4, requests 5, distro 6, makeWrapper 7, installShellFiles 8, extraHandlers ? [] 9}: 10 11buildPythonPackage rec { 12 pname = "ssh-import-id"; 13 version = "5.11"; 14 15 src = fetchgit { 16 url = "https://git.launchpad.net/ssh-import-id"; 17 rev = version; 18 sha256 = "sha256-tYbaJGH59qyvjp4kwo3ZFVs0EaE0Lsd2CQ6iraFkAdI="; 19 }; 20 21 propagatedBuildInputs = [ 22 requests 23 distro 24 ] ++ extraHandlers; 25 26 nativeBuildInputs = [ 27 makeWrapper 28 installShellFiles 29 ]; 30 31 postInstall = '' 32 installManPage $src/usr/share/man/man1/ssh-import-id.1 33 ''; 34 35 # handlers require main bin, main bin requires handlers 36 makeWrapperArgs = [ "--prefix" ":" "$out/bin" ]; 37 38 meta = with lib; { 39 description = "Retrieves an SSH public key and installs it locally"; 40 license = licenses.gpl3; 41 maintainers = with maintainers; [ mkg20001 viraptor ]; 42 platforms = platforms.unix; 43 }; 44}