Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
curl,
|
|
findutils,
|
|
gnugrep,
|
|
gnused,
|
|
shellcheck,
|
|
}:
|
|
|
|
let
|
|
pname = "pass-checkup";
|
|
version = "0.2.2";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "etu";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1p65yxr00k35g4bnagszp8i03pmhnrcmipgrdsawps2ba8faqp6r";
|
|
};
|
|
|
|
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 = "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;
|
|
};
|
|
}
|