diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-12-04 15:39:49 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-12-04 15:39:49 +0000 |
commit | c726012afe1dbd13da7ab15381e3de2867bc8af5 (patch) | |
tree | 123888653c98ee60761109c9b3c59f706695b064 /pkgs/tools/filesystems/glusterfs | |
parent | 064aae6461971ed76ff4ed5bc8e043840592c04a (diff) | |
download | nixlib-c726012afe1dbd13da7ab15381e3de2867bc8af5.tar nixlib-c726012afe1dbd13da7ab15381e3de2867bc8af5.tar.gz nixlib-c726012afe1dbd13da7ab15381e3de2867bc8af5.tar.bz2 nixlib-c726012afe1dbd13da7ab15381e3de2867bc8af5.tar.lz nixlib-c726012afe1dbd13da7ab15381e3de2867bc8af5.tar.xz nixlib-c726012afe1dbd13da7ab15381e3de2867bc8af5.tar.zst nixlib-c726012afe1dbd13da7ab15381e3de2867bc8af5.zip |
* Refactoring: move most filesystem utilities / FUSE filesystems to
tools/filesystems. Previously they were all over the place. svn path=/nixpkgs/trunk/; revision=18809
Diffstat (limited to 'pkgs/tools/filesystems/glusterfs')
-rw-r--r-- | pkgs/tools/filesystems/glusterfs/default.nix | 28 | ||||
-rw-r--r-- | pkgs/tools/filesystems/glusterfs/src-for-default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/filesystems/glusterfs/src-info-for-default.nix | 6 |
3 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/glusterfs/default.nix b/pkgs/tools/filesystems/glusterfs/default.nix new file mode 100644 index 000000000000..3995faa588bc --- /dev/null +++ b/pkgs/tools/filesystems/glusterfs/default.nix @@ -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; + }; +} diff --git a/pkgs/tools/filesystems/glusterfs/src-for-default.nix b/pkgs/tools/filesystems/glusterfs/src-for-default.nix new file mode 100644 index 000000000000..eeda32796f5b --- /dev/null +++ b/pkgs/tools/filesystems/glusterfs/src-for-default.nix @@ -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"; + +} diff --git a/pkgs/tools/filesystems/glusterfs/src-info-for-default.nix b/pkgs/tools/filesystems/glusterfs/src-info-for-default.nix new file mode 100644 index 000000000000..273ee4512e1f --- /dev/null +++ b/pkgs/tools/filesystems/glusterfs/src-info-for-default.nix @@ -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"; +} |