Fix mount.glusterfs installation

This commit is contained in:
Florian Duraffourg 2017-01-05 10:02:33 +01:00
parent f313f9356c
commit 06e16f00c4

View File

@ -1,6 +1,6 @@
{stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python, ncurses, readline, {stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python, ncurses, readline,
autoconf, automake, libtool, pkgconfig, zlib, libaio, libxml2, acl, sqlite autoconf, automake, libtool, pkgconfig, zlib, libaio, libxml2, acl, sqlite
, liburcu, attr , liburcu, attr, makeWrapper, coreutils, gnused, gnugrep, which
}: }:
let let
s = # Generated upstream information s = # Generated upstream information
@ -15,7 +15,7 @@ let
buildInputs = [ buildInputs = [
fuse bison flex_2_5_35 openssl python ncurses readline fuse bison flex_2_5_35 openssl python ncurses readline
autoconf automake libtool pkgconfig zlib libaio libxml2 autoconf automake libtool pkgconfig zlib libaio libxml2
acl sqlite liburcu attr acl sqlite liburcu attr makeWrapper
]; ];
# Some of the headers reference acl # Some of the headers reference acl
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -32,7 +32,7 @@ rec {
''; '';
configureFlags = [ configureFlags = [
''--with-mountutildir="$out/sbin" --localstatedir=/var'' ''--localstatedir=/var''
]; ];
makeFlags = "DESTDIR=$(out)"; makeFlags = "DESTDIR=$(out)";
@ -48,6 +48,7 @@ rec {
postInstall = '' postInstall = ''
cp -r $out/$out/* $out cp -r $out/$out/* $out
rm -r $out/nix rm -r $out/nix
wrapProgram $out/sbin/mount.glusterfs --set PATH "${stdenv.lib.makeBinPath [ coreutils gnused attr gnugrep which]}"
''; '';
src = fetchurl { src = fetchurl {