From 01ad1593f72a5b279a662081dbc65b0a02301de0 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Wed, 8 Jan 2025 15:21:09 +0100 Subject: [PATCH] Ugly hacks --- default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/default.nix b/default.nix index c70cc79..c83473e 100644 --- a/default.nix +++ b/default.nix @@ -6,11 +6,12 @@ , stdenvNoCC , nushell , xdotool +, mpc-cli , ... }: stdenvNoCC.mkDerivation { pname = "irs"; - version = "0.3"; + version = "0.4"; src = ./src; nativeBuildInputs = [ scdoc @@ -21,10 +22,7 @@ stdenvNoCC.mkDerivation { for page in $(find manpages -type f); do scdoc < $page > $(basename $page .scd) done - ''; - - preConfig = '' - patchShebangs ./bin/* + export dontPatchShebangs=1 ''; installPhase = '' @@ -41,7 +39,8 @@ stdenvNoCC.mkDerivation { --replace "xclip" "${xclip}/bin/xclip" \ --replace "maim" "${maim}/bin/maim" \ --replace "pngquant" "${pngquant}/bin/pngquant" \ - --replace "xdotool" "${xdotool}/bin/xdotool" + --replace "xdotool" "${xdotool}/bin/xdotool" \ + --replace "mpc " "${mpc-cli}/bin/mpc " ''; }