summary refs log tree commit diff
path: root/pkgs/tools/filesystems/xtreemfs
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-08-27 21:56:45 +0000
committerRobin Gloster <mail@glob.in>2016-08-27 21:56:45 +0000
commitb37460ec6357335a599beb36b51a17b186276d52 (patch)
treeaafebd87aa454081af5796e5a75b446b14cac826 /pkgs/tools/filesystems/xtreemfs
parent6f9d474db120e29a0d80fb2cb26965c2fc40f6e1 (diff)
downloadnixpkgs-b37460ec6357335a599beb36b51a17b186276d52.tar
nixpkgs-b37460ec6357335a599beb36b51a17b186276d52.tar.gz
nixpkgs-b37460ec6357335a599beb36b51a17b186276d52.tar.bz2
nixpkgs-b37460ec6357335a599beb36b51a17b186276d52.tar.lz
nixpkgs-b37460ec6357335a599beb36b51a17b186276d52.tar.xz
nixpkgs-b37460ec6357335a599beb36b51a17b186276d52.tar.zst
nixpkgs-b37460ec6357335a599beb36b51a17b186276d52.zip
xtreemfs: fix substituteInPlace paths
Diffstat (limited to 'pkgs/tools/filesystems/xtreemfs')
-rw-r--r--pkgs/tools/filesystems/xtreemfs/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/tools/filesystems/xtreemfs/default.nix b/pkgs/tools/filesystems/xtreemfs/default.nix
index adee80d9c5d..2a85adb60b5 100644
--- a/pkgs/tools/filesystems/xtreemfs/default.nix
+++ b/pkgs/tools/filesystems/xtreemfs/default.nix
@@ -42,15 +42,19 @@ stdenv.mkDerivation rec {
     substituteInPlace etc/init.d/generate_initd_scripts.sh \
       --replace "/bin/bash" "${stdenv.shell}"
 
+    substituteInPlace cpp/thirdparty/gtest-1.7.0/configure \
+      --replace "/usr/bin/file" "${file}/bin/file"
+
+    substituteInPlace cpp/thirdparty/protobuf-2.5.0/configure \
+      --replace "/usr/bin/file" "${file}/bin/file"
+
+    substituteInPlace cpp/thirdparty/protobuf-2.5.0/gtest/configure \
+      --replace "/usr/bin/file" "${file}/bin/file"
+
     # do not put cmake into buildInputs
     export PATH="$PATH:${cmake}/bin"
   '';
 
-  preBuild = ''
-    substituteInPlace configure \
-    --replace "/usr/bin/file" "${file}/bin/file"
-  '';
-
   doCheck = false;
 
   postInstall = ''