2016-10-18 20:42:01 +00:00
|
|
|
{stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python2, ncurses, readline,
|
2015-06-14 08:23:42 +00:00
|
|
|
autoconf, automake, libtool, pkgconfig, zlib, libaio, libxml2, acl, sqlite
|
2017-01-05 09:02:33 +00:00
|
|
|
, liburcu, attr, makeWrapper, coreutils, gnused, gnugrep, which
|
2015-06-14 08:23:42 +00:00
|
|
|
}:
|
2009-08-31 09:52:01 +00:00
|
|
|
let
|
2017-03-09 14:37:37 +00:00
|
|
|
s =
|
2012-12-04 17:54:03 +00:00
|
|
|
rec {
|
|
|
|
baseName="glusterfs";
|
2017-04-08 16:37:03 +00:00
|
|
|
version = "3.10.1";
|
2013-10-20 17:10:25 +00:00
|
|
|
name="${baseName}-${version}";
|
2017-04-08 16:37:03 +00:00
|
|
|
url="http://download.gluster.org/pub/gluster/glusterfs/3.10/${version}/glusterfs-${version}.tar.gz";
|
|
|
|
sha256 = "05qmn85lg3d1gz0fhn1v2z7nwl2qwbflvjc8nvkfyr4r57rkvhnk";
|
2012-12-04 17:54:03 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2016-10-18 20:42:01 +00:00
|
|
|
fuse bison flex_2_5_35 openssl python2 ncurses readline
|
2014-11-02 20:24:51 +00:00
|
|
|
autoconf automake libtool pkgconfig zlib libaio libxml2
|
2017-01-05 09:02:33 +00:00
|
|
|
acl sqlite liburcu attr makeWrapper
|
2009-08-31 09:52:01 +00:00
|
|
|
];
|
2015-07-01 06:54:42 +00:00
|
|
|
# Some of the headers reference acl
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
acl
|
|
|
|
];
|
2009-08-31 09:52:01 +00:00
|
|
|
in
|
2012-12-04 17:54:03 +00:00
|
|
|
stdenv.mkDerivation
|
2009-08-31 09:52:01 +00:00
|
|
|
rec {
|
2012-12-04 17:54:03 +00:00
|
|
|
inherit (s) name version;
|
2015-07-01 06:54:42 +00:00
|
|
|
inherit buildInputs propagatedBuildInputs;
|
2014-12-18 10:20:03 +00:00
|
|
|
|
2014-06-23 14:12:10 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2014-12-18 10:20:03 +00:00
|
|
|
|
2009-08-31 09:52:01 +00:00
|
|
|
configureFlags = [
|
2017-01-05 09:02:33 +00:00
|
|
|
''--localstatedir=/var''
|
2009-08-31 09:52:01 +00:00
|
|
|
];
|
2014-12-18 10:20:03 +00:00
|
|
|
|
|
|
|
makeFlags = "DESTDIR=$(out)";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -r $out/$out/* $out
|
|
|
|
rm -r $out/nix
|
2017-01-05 09:02:33 +00:00
|
|
|
wrapProgram $out/sbin/mount.glusterfs --set PATH "${stdenv.lib.makeBinPath [ coreutils gnused attr gnugrep which]}"
|
2014-12-18 10:20:03 +00:00
|
|
|
'';
|
|
|
|
|
2012-12-04 17:54:03 +00:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2009-08-31 09:52:01 +00:00
|
|
|
|
|
|
|
meta = {
|
2012-12-04 17:54:03 +00:00
|
|
|
inherit (s) version;
|
2009-08-31 09:52:01 +00:00
|
|
|
description = "Distributed storage system";
|
|
|
|
maintainers = [
|
2012-12-04 17:54:03 +00:00
|
|
|
stdenv.lib.maintainers.raskin
|
2009-08-31 09:52:01 +00:00
|
|
|
];
|
2012-12-04 17:54:03 +00:00
|
|
|
platforms = with stdenv.lib.platforms;
|
2009-08-31 09:52:01 +00:00
|
|
|
linux ++ freebsd;
|
|
|
|
};
|
|
|
|
}
|