Skip to content

Commit ce5e53a

Browse files
authored
pinentry-rofi: add rofi and coreutils to runtime PATH (NixOS#366240)
2 parents 3a21ca2 + 17f32f3 commit ce5e53a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pkgs/by-name/pi/pinentry-rofi/package.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
autoconf-archive,
88
guile,
99
texinfo,
10+
makeWrapper,
1011
rofi,
12+
coreutils,
1113
}:
1214

1315
stdenv.mkDerivation rec {
@@ -26,11 +28,20 @@ stdenv.mkDerivation rec {
2628
autoreconfHook
2729
pkg-config
2830
texinfo
31+
makeWrapper
2932
];
3033

3134
buildInputs = [ guile ];
3235

33-
propagatedBuildInputs = [ rofi ];
36+
# pinentry-rofi wants to call `env rofi` (https://github.com/plattfot/pinentry-rofi/blob/fde8e32b8380512e2ba02961ccc99765575e2c89/pinentry-rofi.scm#L338)
37+
postInstall = ''
38+
wrapProgram $out/bin/pinentry-rofi --prefix PATH : ${
39+
lib.makeBinPath [
40+
rofi
41+
coreutils
42+
]
43+
}
44+
'';
3445

3546
meta = with lib; {
3647
description = "Rofi frontend to pinentry";

0 commit comments

Comments
 (0)