tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Update GlusterFS
Michael Raskin
13 years ago
8a6b0087
50e7ddbd
+25
-29
5 changed files
expand all
collapse all
unified
split
pkgs
tools
filesystems
glusterfs
default.nix
default.upstream
src-for-default.nix
src-info-for-default.nix
top-level
all-packages.nix
+20
-12
pkgs/tools/filesystems/glusterfs/default.nix
···
1
-
a :
2
let
3
-
s = import ./src-for-default.nix;
4
-
buildInputs = with a; [
5
-
fuse bison flex
0
0
0
0
0
0
0
0
6
];
7
in
0
8
rec {
9
-
src = a.fetchUrlFromSrcInfo s;
10
-
11
-
inherit (s) name;
12
inherit buildInputs;
13
configureFlags = [
14
''--with-mountutildir="$out/sbin"''
15
];
0
0
0
16
17
-
/* doConfigure should be removed if not needed */
18
-
phaseNames = ["doConfigure" "doMakeInstall"];
19
-
20
meta = {
0
21
description = "Distributed storage system";
22
maintainers = [
23
-
a.lib.maintainers.raskin
24
];
25
-
platforms = with a.lib.platforms;
26
linux ++ freebsd;
27
};
28
}
···
1
+
{stdenv, fetchurl, fuse, bison, flex, openssl, python, ncurses, readline}:
2
let
3
+
s = # Generated upstream information
4
+
rec {
5
+
baseName="glusterfs";
6
+
version="3.3.1";
7
+
name="glusterfs-3.3.1";
8
+
hash="06bmnyl3vh8s21kk98idm2fl7kq38na94k5l67l9l1grl3iyzahr";
9
+
url="http://download.gluster.org/pub/gluster/glusterfs/3.3/3.3.1/glusterfs-3.3.1.tar.gz";
10
+
sha256="06bmnyl3vh8s21kk98idm2fl7kq38na94k5l67l9l1grl3iyzahr";
11
+
};
12
+
buildInputs = [
13
+
fuse bison flex openssl python ncurses readline
14
];
15
in
16
+
stdenv.mkDerivation
17
rec {
18
+
inherit (s) name version;
0
0
19
inherit buildInputs;
20
configureFlags = [
21
''--with-mountutildir="$out/sbin"''
22
];
23
+
src = fetchurl {
24
+
inherit (s) url sha256;
25
+
};
26
0
0
0
27
meta = {
28
+
inherit (s) version;
29
description = "Distributed storage system";
30
maintainers = [
31
+
stdenv.lib.maintainers.raskin
32
];
33
+
platforms = with stdenv.lib.platforms;
34
linux ++ freebsd;
35
};
36
}
+4
pkgs/tools/filesystems/glusterfs/default.upstream
···
0
0
0
0
···
1
+
url http://download.gluster.org/pub/gluster/glusterfs/
2
+
version_link '[0-9.]+/$'
3
+
version_link '[0-9.]+/$'
4
+
version_link '[.]tar[.]'
-8
pkgs/tools/filesystems/glusterfs/src-for-default.nix
···
1
-
rec {
2
-
advertisedUrl="http://ftp.gluster.com/pub/gluster/glusterfs/2.0/2.0.6/glusterfs-2.0.6.tar.gz";
3
-
version = "2.0.6";
4
-
url="http://ftp.gluster.com/pub/gluster/glusterfs/2.0/2.0.6/glusterfs-2.0.6.tar.gz";
5
-
hash = "0qr8smwncrr63vzbaf2v4fwpdck3jpgywn2rq8sdhifff67ydc9h";
6
-
name = "glusterfs-2.0.6";
7
-
8
-
}
···
0
0
0
0
0
0
0
0
-6
pkgs/tools/filesystems/glusterfs/src-info-for-default.nix
···
1
-
{
2
-
downloadPage = "http://ftp.gluster.com/pub/gluster/glusterfs/2.0/";
3
-
sourceRegexp = "^2[.]0[.]";
4
-
choiceCommand = ''tail -1 | sed -re 's@(.*)/@&glusterfs-\1.tar.gz@' '';
5
-
baseName = "glusterfs";
6
-
}
···
0
0
0
0
0
0
+1
-3
pkgs/top-level/all-packages.nix
···
779
780
gifsicle = callPackage ../tools/graphics/gifsicle { };
781
782
-
glusterfs = builderDefsPackage ../tools/filesystems/glusterfs {
783
-
inherit fuse flex bison;
784
-
};
785
786
glxinfo = callPackage ../tools/graphics/glxinfo { };
787
···
779
780
gifsicle = callPackage ../tools/graphics/gifsicle { };
781
782
+
glusterfs = callPackage ../tools/filesystems/glusterfs { };
0
0
783
784
glxinfo = callPackage ../tools/graphics/glxinfo { };
785