uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/tools/admin/ssh-import-id/default.nix
Normal file
44
pkgs/tools/admin/ssh-import-id/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ buildPythonPackage
|
||||
, lib
|
||||
, fetchgit
|
||||
, requests
|
||||
, distro
|
||||
, makeWrapper
|
||||
, installShellFiles
|
||||
, extraHandlers ? []
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ssh-import-id";
|
||||
version = "5.11";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.launchpad.net/ssh-import-id";
|
||||
rev = version;
|
||||
sha256 = "sha256-tYbaJGH59qyvjp4kwo3ZFVs0EaE0Lsd2CQ6iraFkAdI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
distro
|
||||
] ++ extraHandlers;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installManPage $src/usr/share/man/man1/ssh-import-id.1
|
||||
'';
|
||||
|
||||
# handlers require main bin, main bin requires handlers
|
||||
makeWrapperArgs = [ "--prefix" ":" "$out/bin" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Retrieves an SSH public key and installs it locally";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ mkg20001 viraptor ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue