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
42
pkgs/tools/security/pass/extensions/checkup.nix
Normal file
42
pkgs/tools/security/pass/extensions/checkup.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, curl, findutils, gnugrep, gnused, shellcheck }:
|
||||
|
||||
let
|
||||
pname = "pass-checkup";
|
||||
version = "0.2.1";
|
||||
in stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "etu";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "18b6rx59r7g0hvqs2affvw0g0jyifyzhanwgz2q2b8nhjgqgnar2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ shellcheck ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace checkup.bash \
|
||||
--replace curl ${curl}/bin/curl \
|
||||
--replace find ${findutils}/bin/find \
|
||||
--replace grep ${gnugrep}/bin/grep \
|
||||
--replace sed ${gnused}/bin/sed
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D -m755 checkup.bash $out/lib/password-store/extensions/checkup.bash
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pass extension to check against the Have I been pwned API to see if your passwords are publicly leaked or not";
|
||||
homepage = "https://github.com/etu/pass-checkup";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ etu ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue