Ugly hacks

This commit is contained in:
Nox Sluijtman 2025-01-08 15:21:09 +01:00
parent d2428f4d54
commit 01ad1593f7
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

View file

@ -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 "
'';
}