Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
pkg-config,
autoreconfHook,
autoconf-archive,
guile,
texinfo,
makeWrapper,
rofi,
coreutils,
}:
stdenv.mkDerivation rec {
pname = "pinentry-rofi";
version = "3.0.0";
src = fetchFromGitHub {
owner = "plattfot";
repo = "pinentry-rofi";
rev = version;
sha256 = "sha256-GHpVO8FRphVW0+In7TtB39ewwVLU1EHOeVL05pnZdFQ=";
};
nativeBuildInputs = [
autoconf-archive
autoreconfHook
guile
pkg-config
texinfo
makeWrapper
];
buildInputs = [ guile ];
# pinentry-rofi wants to call `env rofi` (https://github.com/plattfot/pinentry-rofi/blob/fde8e32b8380512e2ba02961ccc99765575e2c89/pinentry-rofi.scm#L338)
postInstall = ''
wrapProgram $out/bin/pinentry-rofi --prefix PATH : ${
lib.makeBinPath [
rofi
coreutils
]
}
'';
meta = with lib; {
description = "Rofi frontend to pinentry";
homepage = "https://github.com/plattfot/pinentry-rofi";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ seqizz ];
mainProgram = "pinentry-rofi";
};
}