@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, perl, icmake }:
1+{ stdenv, fetchurl, perl, icmake, utillinux }:
22
33stdenv.mkDerivation rec {
44 name = "yodl-${version}";
@@ -13,9 +13,10 @@ stdenv.mkDerivation rec {
1313
1414 preConfigure = ''
1515 patchShebangs scripts/.
16− sed -i 's;/usr;;g' INSTALL.im
17− substituteInPlace build --replace /usr/bin/icmake ${icmake}/bin/icmake
16+ substituteInPlace INSTALL.im --replace /usr $out
17+ patchShebangs ./build
1818 substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
19+ substituteInPlace scripts/yodl2whatever.in --replace getopt ${utillinux}/bin/getopt
1920 '';
2021
2122 buildPhase = ''
@@ -25,9 +26,9 @@ stdenv.mkDerivation rec {
2526 '';
2627
2728 installPhase = ''
28− ./build install programs $out
29− ./build install macros $out
30− ./build install man $out
29+ ./build install programs
30+ ./build install macros
31+ ./build install man
3132 '';
3233
3334 meta = with stdenv.lib; {