Adding GlusterFS - a distributed storage system

svn path=/nixpkgs/trunk/; revision=16896
This commit is contained in:
Michael Raskin 2009-08-31 09:52:01 +00:00
parent dd25b49bfa
commit 11e09ffad1
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,28 @@
a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
fuse bison flex
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
inherit (s) name;
inherit buildInputs;
configureFlags = [
''--with-mountutildir="$out/sbin"''
];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
meta = {
description = "Distributed storage system";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux ++ freebsd;
};
}

View File

@ -0,0 +1,8 @@
rec {
advertisedUrl="http://ftp.gluster.com/pub/gluster/glusterfs/2.0/2.0.6/glusterfs-2.0.6.tar.gz";
version = "2.0.6";
url="http://ftp.gluster.com/pub/gluster/glusterfs/2.0/2.0.6/glusterfs-2.0.6.tar.gz";
hash = "0qr8smwncrr63vzbaf2v4fwpdck3jpgywn2rq8sdhifff67ydc9h";
name = "glusterfs-2.0.6";
}

View File

@ -0,0 +1,6 @@
{
downloadPage = "http://ftp.gluster.com/pub/gluster/glusterfs/2.0/";
sourceRegexp = "^2[.]0[.]";
choiceCommand = ''tail -1 | sed -re 's@(.*)/@&glusterfs-\1.tar.gz@' '';
baseName = "glusterfs";
}

View File

@ -746,6 +746,12 @@ let
inherit (xlibs) xproto libXt libX11;
};
glusterfs = builderDefsPackage ../tools/networking/glusterfs {
inherit fuse;
bison = bison24;
flex = flex2535;
};
glxinfo = import ../tools/graphics/glxinfo {
inherit fetchurl stdenv x11 mesa;
};