Ugly hacks
This commit is contained in:
parent
d2428f4d54
commit
01ad1593f7
11
default.nix
11
default.nix
|
@ -6,11 +6,12 @@
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, nushell
|
, nushell
|
||||||
, xdotool
|
, xdotool
|
||||||
|
, mpc-cli
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "irs";
|
pname = "irs";
|
||||||
version = "0.3";
|
version = "0.4";
|
||||||
src = ./src;
|
src = ./src;
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
scdoc
|
scdoc
|
||||||
|
@ -21,10 +22,7 @@ stdenvNoCC.mkDerivation {
|
||||||
for page in $(find manpages -type f); do
|
for page in $(find manpages -type f); do
|
||||||
scdoc < $page > $(basename $page .scd)
|
scdoc < $page > $(basename $page .scd)
|
||||||
done
|
done
|
||||||
'';
|
export dontPatchShebangs=1
|
||||||
|
|
||||||
preConfig = ''
|
|
||||||
patchShebangs ./bin/*
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -41,7 +39,8 @@ stdenvNoCC.mkDerivation {
|
||||||
--replace "xclip" "${xclip}/bin/xclip" \
|
--replace "xclip" "${xclip}/bin/xclip" \
|
||||||
--replace "maim" "${maim}/bin/maim" \
|
--replace "maim" "${maim}/bin/maim" \
|
||||||
--replace "pngquant" "${pngquant}/bin/pngquant" \
|
--replace "pngquant" "${pngquant}/bin/pngquant" \
|
||||||
--replace "xdotool" "${xdotool}/bin/xdotool"
|
--replace "xdotool" "${xdotool}/bin/xdotool" \
|
||||||
|
--replace "mpc " "${mpc-cli}/bin/mpc "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue