Commit 73b6bea9 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

rofi-pass: add missing phase hooks

parent 1656b18a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -46,11 +46,15 @@ stdenv.mkDerivation {
  dontBuild = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp -a rofi-pass $out/bin/rofi-pass

    mkdir -p $out/share/doc/rofi-pass/
    cp -a config.example $out/share/doc/rofi-pass/config.example

    runHook postInstall
  '';

  wrapperPath = lib.makeBinPath (
@@ -78,6 +82,8 @@ stdenv.mkDerivation {
  );

  fixupPhase = ''
    runHook preFixup

    patchShebangs $out/bin

    wrapProgram $out/bin/rofi-pass \
@@ -86,6 +92,8 @@ stdenv.mkDerivation {
      --set-default ROFI_PASS_CLIPBOARD_BACKEND ${
        if backend == "wayland" then "wl-clipboard" else "xclip"
      }

    runHook postFixup
  '';

  passthru.updateScript = unstableGitUpdater { };