summary refs log tree commit diff
path: root/pkgs/development/tools/misc/yodl
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-05 02:37:22 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-05 19:44:45 +0200
commit288291e13233057711da0331cd75a0024517ac12 (patch)
treecb21aaa298dc6673898c2100fd4ff84ff0341d6d /pkgs/development/tools/misc/yodl
parentc37ca32be245ed2eb8abd56878f0d4ce6c746dc3 (diff)
downloadnixlib-288291e13233057711da0331cd75a0024517ac12.tar
nixlib-288291e13233057711da0331cd75a0024517ac12.tar.gz
nixlib-288291e13233057711da0331cd75a0024517ac12.tar.bz2
nixlib-288291e13233057711da0331cd75a0024517ac12.tar.lz
nixlib-288291e13233057711da0331cd75a0024517ac12.tar.xz
nixlib-288291e13233057711da0331cd75a0024517ac12.tar.zst
nixlib-288291e13233057711da0331cd75a0024517ac12.zip
yodl: fix paths. Now it actually works.
Diffstat (limited to 'pkgs/development/tools/misc/yodl')
-rw-r--r--pkgs/development/tools/misc/yodl/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/tools/misc/yodl/default.nix b/pkgs/development/tools/misc/yodl/default.nix
index 598835c51521..d6667b76759e 100644
--- a/pkgs/development/tools/misc/yodl/default.nix
+++ b/pkgs/development/tools/misc/yodl/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, perl, icmake }:
+{ stdenv, fetchurl, perl, icmake, utillinux }:
 
 stdenv.mkDerivation rec {
   name = "yodl-${version}";
@@ -13,9 +13,10 @@ stdenv.mkDerivation rec {
 
   preConfigure = ''
     patchShebangs scripts/.
-    sed -i 's;/usr;;g' INSTALL.im
-    substituteInPlace build --replace /usr/bin/icmake ${icmake}/bin/icmake
+    substituteInPlace INSTALL.im --replace /usr $out
+    patchShebangs ./build
     substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
+    substituteInPlace scripts/yodl2whatever.in --replace getopt ${utillinux}/bin/getopt
   '';
 
   buildPhase = ''
@@ -25,9 +26,9 @@ stdenv.mkDerivation rec {
   '';
 
   installPhase = ''
-    ./build install programs $out
-    ./build install macros $out
-    ./build install man $out
+    ./build install programs
+    ./build install macros
+    ./build install man
   '';
 
   meta = with stdenv.lib; {