Unverified Commit ce5e53a0 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

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

parents 3a21ca23 17f32f37
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@
  autoconf-archive,
  guile,
  texinfo,
  makeWrapper,
  rofi,
  coreutils,
}:

stdenv.mkDerivation rec {
@@ -26,11 +28,20 @@ stdenv.mkDerivation rec {
    autoreconfHook
    pkg-config
    texinfo
    makeWrapper
  ];

  buildInputs = [ guile ];

  propagatedBuildInputs = [ rofi ];
  # 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";