mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
Adding GlusterFS - a distributed storage system
svn path=/nixpkgs/trunk/; revision=16896
This commit is contained in:
parent
dd25b49bfa
commit
11e09ffad1
28
pkgs/tools/networking/glusterfs/default.nix
Normal file
28
pkgs/tools/networking/glusterfs/default.nix
Normal 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;
|
||||
};
|
||||
}
|
8
pkgs/tools/networking/glusterfs/src-for-default.nix
Normal file
8
pkgs/tools/networking/glusterfs/src-for-default.nix
Normal 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";
|
||||
|
||||
}
|
6
pkgs/tools/networking/glusterfs/src-info-for-default.nix
Normal file
6
pkgs/tools/networking/glusterfs/src-info-for-default.nix
Normal 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";
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue