tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dbus: minor update, style refactoring, parallel build
Vladimír Čunát
12 years ago
0cf8a74e
e12c5dea
+31
-25
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
dbus
default.nix
+31
-25
pkgs/development/libraries/dbus/default.nix
···
3
3
, libX11, libICE, libSM, useX11 ? stdenv.isLinux }:
4
4
5
5
let
6
6
-
version = "1.6.12"; # 1.7.* isn't recommended, even for gnome 3.8
7
7
-
sha256 = "14pfh2ksn4srfry752kf1jy3c61hklcs9fx2xglw2ifhsszplypn";
6
6
+
version = "1.6.14"; # 1.7.* isn't recommended, even for gnome 3.8
7
7
+
sha256 = "0v7mcxwfmpjf7vndnvf2kf02al61clrxs36bqii20s0lawfh2xjn";
8
8
9
9
inherit (stdenv) lib;
10
10
···
25
25
inherit sha256;
26
26
};
27
27
28
28
-
configureFlags = [
29
29
-
"--localstatedir=/var"
30
30
-
"--sysconfdir=/etc"
31
31
-
"--with-session-socket-dir=/tmp"
32
32
-
"--with-systemdsystemunitdir=$(out)/lib/systemd"
33
33
-
];
28
28
+
patches = [
29
29
+
./ignore-missing-includedirs.patch
30
30
+
./ucred-dirty-hack.patch
31
31
+
./no-create-dirs.patch
32
32
+
]
33
33
+
++ lib.optional (stdenv.isSunOS || stdenv.isLinux) ./implement-getgrouplist.patch
34
34
+
;
35
35
+
36
36
+
# build only the specified subdirs
37
37
+
postPatch = "sed '/SUBDIRS/s/=.*/=" + subdirs + "/' -i Makefile.am\n"
38
38
+
# use already packaged libdbus instead of trying to build it again
39
39
+
+ lib.optionalString (name != "libs") ''
40
40
+
for mfile in */Makefile.am; do
41
41
+
sed 's,\$(top_builddir)/dbus/\(libdbus-[0-9]\),${libs}/lib/\1,g' -i "$mfile"
42
42
+
done
43
43
+
'';
44
44
+
45
45
+
nativeBuildInputs = [ pkgconfig ];
46
46
+
propagatedBuildInputs = [ expat ];
47
47
+
buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux?
34
48
35
49
preConfigure = ''
36
50
patchShebangs .
···
38
52
autoreconf -fi
39
53
'';
40
54
41
41
-
installFlags = "sysconfdir=$(out)/etc";
42
42
-
43
43
-
doCheck = true;
55
55
+
configureFlags = [
56
56
+
"--localstatedir=/var"
57
57
+
"--sysconfdir=/etc"
58
58
+
"--with-session-socket-dir=/tmp"
59
59
+
"--with-systemdsystemunitdir=$(out)/lib/systemd"
60
60
+
];
44
61
45
45
-
patches = [ ./ignore-missing-includedirs.patch ]
46
46
-
++ lib.optional (stdenv.isSunOS || stdenv.isLinux/*avoid rebuilds*/) ./implement-getgrouplist.patch
47
47
-
++ [ ./ucred-dirty-hack.patch ./no-create-dirs.patch ];
62
62
+
enableParallelBuilding = true;
48
63
49
49
-
nativeBuildInputs = [ pkgconfig ];
50
50
-
propagatedBuildInputs = [ expat ];
51
51
-
buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux?
64
64
+
doCheck = true;
52
65
53
53
-
# build only the specified subdirs
54
54
-
postPatch = "sed '/SUBDIRS/s/=.*/=" + subdirs + "/' -i Makefile.am\n"
55
55
-
# use already packaged libdbus instead of trying to build it again
56
56
-
+ lib.optionalString (name != "libs") ''
57
57
-
for mfile in */Makefile.am; do
58
58
-
sed 's,\$(top_builddir)/dbus/\(libdbus-[0-9]\),${libs}/lib/\1,g' -i "$mfile"
59
59
-
done
60
60
-
'';
66
66
+
installFlags = "sysconfdir=$(out)/etc";
61
67
62
68
} merge ]);
63
69