summary refs log tree commit diff
path: root/pkgs/tools/filesystems/glusterfs
diff options
context:
space:
mode:
authorFlorian Duraffourg <f.duraffourg@gmail.com>2017-01-05 10:02:33 +0100
committerFlorian Duraffourg <f.duraffourg@gmail.com>2017-01-05 10:02:33 +0100
commit06e16f00c489fe34d03baa9fadf393d5174243bb (patch)
treed409903947c3b816112247ad3181ba39a593cb03 /pkgs/tools/filesystems/glusterfs
parentf313f9356c380c7613ab4597562412e92c0bdbd1 (diff)
downloadnixlib-06e16f00c489fe34d03baa9fadf393d5174243bb.tar
nixlib-06e16f00c489fe34d03baa9fadf393d5174243bb.tar.gz
nixlib-06e16f00c489fe34d03baa9fadf393d5174243bb.tar.bz2
nixlib-06e16f00c489fe34d03baa9fadf393d5174243bb.tar.lz
nixlib-06e16f00c489fe34d03baa9fadf393d5174243bb.tar.xz
nixlib-06e16f00c489fe34d03baa9fadf393d5174243bb.tar.zst
nixlib-06e16f00c489fe34d03baa9fadf393d5174243bb.zip
Fix mount.glusterfs installation
Diffstat (limited to 'pkgs/tools/filesystems/glusterfs')
-rw-r--r--pkgs/tools/filesystems/glusterfs/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/filesystems/glusterfs/default.nix b/pkgs/tools/filesystems/glusterfs/default.nix
index 3defa6ab1238..6fd46a48639a 100644
--- a/pkgs/tools/filesystems/glusterfs/default.nix
+++ b/pkgs/tools/filesystems/glusterfs/default.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python, ncurses, readline,
  autoconf, automake, libtool, pkgconfig, zlib, libaio, libxml2, acl, sqlite
- , liburcu, attr
+ , liburcu, attr, makeWrapper, coreutils, gnused, gnugrep, which
 }:
 let 
   s = # Generated upstream information 
@@ -15,7 +15,7 @@ let
   buildInputs = [
     fuse bison flex_2_5_35 openssl python ncurses readline
     autoconf automake libtool pkgconfig zlib libaio libxml2
-    acl sqlite liburcu attr
+    acl sqlite liburcu attr makeWrapper
   ];
   # Some of the headers reference acl
   propagatedBuildInputs = [
@@ -32,7 +32,7 @@ rec {
     '';
 
   configureFlags = [
-    ''--with-mountutildir="$out/sbin" --localstatedir=/var''
+    ''--localstatedir=/var''
     ];
 
   makeFlags = "DESTDIR=$(out)";
@@ -48,6 +48,7 @@ rec {
   postInstall = ''
     cp -r $out/$out/* $out
     rm -r $out/nix
+    wrapProgram $out/sbin/mount.glusterfs --set PATH "${stdenv.lib.makeBinPath [ coreutils gnused attr gnugrep which]}"
     '';
 
   src = fetchurl {