3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/glusterfs/default.nix

60 lines
1.7 KiB
Nix
Raw Normal View History

2014-06-23 15:12:10 +01:00
{stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python, ncurses, readline,
2014-11-02 20:24:51 +00:00
autoconf, automake, libtool, pkgconfig, zlib, libaio, libxml2}:
let
2012-12-04 17:54:03 +00:00
s = # Generated upstream information
rec {
baseName="glusterfs";
2015-02-01 08:25:51 +00:00
version="3.6.2";
2013-10-20 18:10:25 +01:00
name="${baseName}-${version}";
2015-02-01 08:25:51 +00:00
hash="1kz0kmj0apkhkmw1zy72bsx06b1ii6z8y3fq365cy5l3xnjibdaa";
url="http://download.gluster.org/pub/gluster/glusterfs/3.6/3.6.2/glusterfs-3.6.2.tar.gz";
sha256="1kz0kmj0apkhkmw1zy72bsx06b1ii6z8y3fq365cy5l3xnjibdaa";
2012-12-04 17:54:03 +00:00
};
buildInputs = [
2014-06-23 15:12:10 +01:00
fuse bison flex_2_5_35 openssl python ncurses readline
2014-11-02 20:24:51 +00:00
autoconf automake libtool pkgconfig zlib libaio libxml2
];
in
2012-12-04 17:54:03 +00:00
stdenv.mkDerivation
rec {
2012-12-04 17:54:03 +00:00
inherit (s) name version;
inherit buildInputs;
2014-06-23 15:12:10 +01:00
preConfigure = ''
./autogen.sh
'';
configureFlags = [
''--with-mountutildir="$out/sbin" --localstatedir=/var''
];
makeFlags = "DESTDIR=$(out)";
2014-06-23 15:12:10 +01: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
'';
postInstall = ''
cp -r $out/$out/* $out
rm -r $out/nix
'';
2012-12-04 17:54:03 +00:00
src = fetchurl {
inherit (s) url sha256;
};
meta = {
2012-12-04 17:54:03 +00:00
inherit (s) version;
description = "Distributed storage system";
maintainers = [
2012-12-04 17:54:03 +00:00
stdenv.lib.maintainers.raskin
];
2012-12-04 17:54:03 +00:00
platforms = with stdenv.lib.platforms;
linux ++ freebsd;
};
}