nixpkgs/pkgs/tools/filesystems/glusterfs/default.nix

49 lines
1.5 KiB
Nix
Raw Normal View History

2014-06-23 14:12:10 +00:00
{stdenv, fetchurl, fuse, bison, flex_2_5_35, openssl, python, ncurses, readline,
autoconf, automake, libtool, pkgconfig, zlib, libaio}:
let
2012-12-04 17:54:03 +00:00
s = # Generated upstream information
rec {
baseName="glusterfs";
2014-08-03 18:02:29 +00:00
version="3.5.2";
2013-10-20 17:10:25 +00:00
name="${baseName}-${version}";
2014-08-03 18:02:29 +00:00
hash="1hvns9islr5jcy0r1cw5890ra246y12pl5nlhl3bvmhglrkv8n7g";
url="http://download.gluster.org/pub/gluster/glusterfs/3.5/3.5.2/glusterfs-3.5.2.tar.gz";
sha256="1hvns9islr5jcy0r1cw5890ra246y12pl5nlhl3bvmhglrkv8n7g";
2012-12-04 17:54:03 +00:00
};
buildInputs = [
2014-06-23 14:12:10 +00:00
fuse bison flex_2_5_35 openssl python ncurses readline
autoconf automake libtool pkgconfig zlib libaio
];
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 14:12:10 +00:00
preConfigure = ''
./autogen.sh
'';
configureFlags = [
''--with-mountutildir="$out/sbin"''
];
2014-06-23 14:12:10 +00: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
'';
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;
};
}