tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
4store: 1.1.5 -> 1.1.6 (convert from builderDefsPackage)
Domen Kožar
9 years ago
0adf2b25
3bd3957a
+34
-38
1 changed file
expand all
collapse all
unified
split
pkgs
servers
http
4store
default.nix
+34
-38
pkgs/servers/http/4store/default.nix
···
1
1
-
x@{builderDefsPackage
2
2
-
, librdf_raptor, librdf_rasqal,
3
3
-
glib, libxml2, pcre, avahi,
4
4
-
readline, ncurses, expat,
5
5
-
zlib, pkgconfig, which,
6
6
-
perl, libuuid, gmp, mpfr
7
7
-
, db_dir ? "/var/lib/4store"
8
8
-
, ...}:
9
9
-
builderDefsPackage
10
10
-
(a :
11
11
-
let
12
12
-
s = import ./src-for-default.nix;
13
13
-
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
14
14
-
["db_dir"];
15
15
-
buildInputs = map (n: builtins.getAttr n x)
16
16
-
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
17
17
-
in
18
18
-
rec {
19
19
-
src = a.fetchUrlFromSrcInfo s;
1
1
+
{ stdenv, fetchFromGitHub, librdf_raptor
2
2
+
, librdf_rasqal, glib, libxml2, pcre
3
3
+
, avahi, readline, ncurses, expat, autoreconfHook
4
4
+
, zlib, pkgconfig, which, perl, libuuid
5
5
+
, gmp, mpfr
6
6
+
, db_dir ? "/var/lib/4store" }:
20
7
21
21
-
inherit (s) name;
22
22
-
inherit buildInputs;
23
8
24
24
-
/* doConfigure should be removed if not needed */
25
25
-
phaseNames = ["doFixConfigure" "doConfigure" "doMakeInstall"
26
26
-
"fixInterpreter"];
9
9
+
stdenv.mkDerivation rec {
10
10
+
name = "4store-${version}";
11
11
+
version = "1.1.6";
27
12
28
28
-
doFixConfigure = a.fullDepEntry ''
29
29
-
sed -e 's@#! */bin/bash@#! ${a.stdenv.shell}@' -i configure
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "garlik";
15
15
+
repo = "4store";
16
16
+
rev = "v${version}";
17
17
+
sha256 = "1kzdfmwpzy64cgqlkcz5v4klwx99w0jk7afckyf7yqbqb4rydmpk";
18
18
+
};
19
19
+
20
20
+
buildInputs = [ librdf_raptor librdf_rasqal glib libxml2 pcre
21
21
+
avahi readline ncurses expat zlib pkgconfig which perl libuuid
22
22
+
gmp mpfr autoreconfHook ];
23
23
+
24
24
+
# needed for ./autogen.sh
25
25
+
prePatch = ''
26
26
+
echo "${version}" > .version
27
27
+
'';
28
28
+
29
29
+
preConfigure = ''
30
30
+
sed -e 's@#! */bin/bash@#! ${stdenv.shell}@' -i configure
30
31
find . -name Makefile -exec sed -e "s@/usr/local@$out@g" -i '{}' ';'
31
32
32
32
-
sed -e 's@/var/lib/4store@${db_dir}@g' -i src/common/params.h src/utilities/*
33
33
+
rm src/utilities/4s-backend
34
34
+
sed -e 's@/var/lib/4store@${db_dir}@g' -i configure.ac src/utilities/*
33
35
sed -e '/FS_STORE_ROOT/d' -i src/utilities/Makefile*
34
34
-
'' ["minInit" "doUnpack"];
36
36
+
'';
35
37
36
36
-
fixInterpreter = (a.doPatchShebangs "$out/bin");
37
37
-
38
38
-
meta = {
38
38
+
meta = with stdenv.lib; {
39
39
description = "SparQL query server (RDF storage)";
40
40
homepage = http://4store.org/;
41
41
-
maintainers = with a.lib.maintainers;
42
42
-
[
43
43
-
raskin
44
44
-
];
45
45
-
platforms = with a.lib.platforms;
46
46
-
linux;
41
41
+
maintainers = with maintainers; [ raskin ];
42
42
+
platforms = platforms.linux;
47
43
};
48
48
-
}) x
44
44
+
}