pinentry-rofi: add rofi and coreutils to runtime PATH (#366240)

Weijia Wang ce5e53a0 3a21ca23

Changed files
+12 -1
pkgs
by-name
pi
pinentry-rofi
+12 -1
pkgs/by-name/pi/pinentry-rofi/package.nix
···
autoconf-archive,
guile,
texinfo,
rofi,
}:
stdenv.mkDerivation rec {
···
autoreconfHook
pkg-config
texinfo
];
buildInputs = [ guile ];
-
propagatedBuildInputs = [ rofi ];
meta = with lib; {
description = "Rofi frontend to pinentry";
···
autoconf-archive,
guile,
texinfo,
+
makeWrapper,
rofi,
+
coreutils,
}:
stdenv.mkDerivation rec {
···
autoreconfHook
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";