60 lines
1.7 KiB
Nix
60 lines
1.7 KiB
Nix
{stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python, ncurses, readline,
|
|
autoconf, automake, libtool, pkgconfig, zlib, libaio, libxml2}:
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
baseName="glusterfs";
|
|
version="3.6.2";
|
|
name="${baseName}-${version}";
|
|
hash="1kz0kmj0apkhkmw1zy72bsx06b1ii6z8y3fq365cy5l3xnjibdaa";
|
|
url="http://download.gluster.org/pub/gluster/glusterfs/3.6/3.6.2/glusterfs-3.6.2.tar.gz";
|
|
sha256="1kz0kmj0apkhkmw1zy72bsx06b1ii6z8y3fq365cy5l3xnjibdaa";
|
|
};
|
|
buildInputs = [
|
|
fuse bison flex_2_5_35 openssl python ncurses readline
|
|
autoconf automake libtool pkgconfig zlib libaio libxml2
|
|
];
|
|
in
|
|
stdenv.mkDerivation
|
|
rec {
|
|
inherit (s) name version;
|
|
inherit buildInputs;
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
configureFlags = [
|
|
''--with-mountutildir="$out/sbin" --localstatedir=/var''
|
|
];
|
|
|
|
makeFlags = "DESTDIR=$(out)";
|
|
|
|
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
|
|
'';
|
|
|
|
postInstall = ''
|
|
cp -r $out/$out/* $out
|
|
rm -r $out/nix
|
|
'';
|
|
|
|
src = fetchurl {
|
|
inherit (s) url sha256;
|
|
};
|
|
|
|
meta = {
|
|
inherit (s) version;
|
|
description = "Distributed storage system";
|
|
maintainers = [
|
|
stdenv.lib.maintainers.raskin
|
|
];
|
|
platforms = with stdenv.lib.platforms;
|
|
linux ++ freebsd;
|
|
};
|
|
}
|