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
40
pkgs/tools/security/age-plugin-yubikey/default.nix
Normal file
40
pkgs/tools/security/age-plugin-yubikey/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, pcsclite
|
||||
, PCSC
|
||||
, Foundation
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "age-plugin-yubikey";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "str4d";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-KXqicTZ9GZlNj1AH3tMmOrC8zjXoEnqo4JJJTBdiI4E=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-m/v4E7KHyLIWZHX0TKpqwBVDDwLjhYpOjYMrKEtx6/4=";
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
||||
|
||||
buildInputs =
|
||||
if stdenv.isDarwin then [
|
||||
Foundation
|
||||
PCSC
|
||||
] else [
|
||||
pcsclite
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "YubiKey plugin for age clients";
|
||||
homepage = "https://github.com/str4d/age-plugin-yubikey";
|
||||
license = with licenses; [ asl20 mit ];
|
||||
maintainers = with maintainers; [ vtuan10 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue