2014-06-23 16:12:10 +02:00
|
|
|
{stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python, ncurses, readline,
|
2015-06-14 10:23:42 +02:00
|
|
|
autoconf, automake, libtool, pkgconfig, zlib, libaio, libxml2, acl, sqlite
|
|
|
|
, liburcu, attr
|
|
|
|
}:
|
2009-08-31 11:52:01 +02:00
|
|
|
let
|
2012-12-04 18:54:03 +01:00
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="glusterfs";
|
2015-08-08 19:10:20 +02:00
|
|
|
version="3.7.3";
|
2013-10-20 19:10:25 +02:00
|
|
|
name="${baseName}-${version}";
|
2015-08-08 19:10:20 +02:00
|
|
|
hash="0xdzxprsi0gybv6jdp0ycfpsxzijwfrm3217fk3fnixcs92frshv";
|
|
|
|
url="http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.3/glusterfs-3.7.3.tar.gz";
|
|
|
|
sha256="0xdzxprsi0gybv6jdp0ycfpsxzijwfrm3217fk3fnixcs92frshv";
|
2012-12-04 18:54:03 +01:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2014-06-23 16:12:10 +02:00
|
|
|
fuse bison flex_2_5_35 openssl python ncurses readline
|
2014-11-02 21:24:51 +01:00
|
|
|
autoconf automake libtool pkgconfig zlib libaio libxml2
|
2015-06-14 10:23:42 +02:00
|
|
|
acl sqlite liburcu attr
|
2009-08-31 11:52:01 +02:00
|
|
|
];
|
2015-07-01 08:54:42 +02:00
|
|
|
# Some of the headers reference acl
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
acl
|
|
|
|
];
|
2009-08-31 11:52:01 +02:00
|
|
|
in
|
2012-12-04 18:54:03 +01:00
|
|
|
stdenv.mkDerivation
|
2009-08-31 11:52:01 +02:00
|
|
|
rec {
|
2012-12-04 18:54:03 +01:00
|
|
|
inherit (s) name version;
|
2015-07-01 08:54:42 +02:00
|
|
|
inherit buildInputs propagatedBuildInputs;
|
2014-12-18 11:20:03 +01:00
|
|
|
|
2014-06-23 16:12:10 +02:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2014-12-18 11:20:03 +01:00
|
|
|
|
2009-08-31 11:52:01 +02:00
|
|
|
configureFlags = [
|
2014-12-18 11:20:03 +01:00
|
|
|
''--with-mountutildir="$out/sbin" --localstatedir=/var''
|
2009-08-31 11:52:01 +02:00
|
|
|
];
|
2014-12-18 11:20:03 +01:00
|
|
|
|
|
|
|
makeFlags = "DESTDIR=$(out)";
|
|
|
|
|
2014-06-23 16:12:10 +02:00
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace api/examples/Makefile --replace '$(DESTDIR)' $out
|
|
|
|
substituteInPlace geo-replication/syncdaemon/Makefile --replace '$(DESTDIR)' $out
|
|
|
|
substituteInPlace geo-replication/syncdaemon/Makefile --replace '$(DESTDIR)' $out
|
|
|
|
substituteInPlace xlators/features/glupy/examples/Makefile --replace '$(DESTDIR)' $out
|
|
|
|
substituteInPlace xlators/features/glupy/src/Makefile --replace '$(DESTDIR)' $out
|
|
|
|
'';
|
2014-12-18 11:20:03 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -r $out/$out/* $out
|
|
|
|
rm -r $out/nix
|
|
|
|
'';
|
|
|
|
|
2012-12-04 18:54:03 +01:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2009-08-31 11:52:01 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-12-04 18:54:03 +01:00
|
|
|
inherit (s) version;
|
2009-08-31 11:52:01 +02:00
|
|
|
description = "Distributed storage system";
|
|
|
|
maintainers = [
|
2012-12-04 18:54:03 +01:00
|
|
|
stdenv.lib.maintainers.raskin
|
2009-08-31 11:52:01 +02:00
|
|
|
];
|
2012-12-04 18:54:03 +01:00
|
|
|
platforms = with stdenv.lib.platforms;
|
2009-08-31 11:52:01 +02:00
|
|
|
linux ++ freebsd;
|
|
|
|
};
|
|
|
|
}
|