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
, libX11, libICE, libSM, useX11 ? stdenv.isLinux }:
4
5
let
6
-
version = "1.6.12"; # 1.7.* isn't recommended, even for gnome 3.8
7
-
sha256 = "14pfh2ksn4srfry752kf1jy3c61hklcs9fx2xglw2ifhsszplypn";
8
9
inherit (stdenv) lib;
10
···
25
inherit sha256;
26
};
27
28
-
configureFlags = [
29
-
"--localstatedir=/var"
30
-
"--sysconfdir=/etc"
31
-
"--with-session-socket-dir=/tmp"
32
-
"--with-systemdsystemunitdir=$(out)/lib/systemd"
33
-
];
0
0
0
0
0
0
0
0
0
0
0
0
0
0
34
35
preConfigure = ''
36
patchShebangs .
···
38
autoreconf -fi
39
'';
40
41
-
installFlags = "sysconfdir=$(out)/etc";
42
-
43
-
doCheck = true;
0
0
0
44
45
-
patches = [ ./ignore-missing-includedirs.patch ]
46
-
++ lib.optional (stdenv.isSunOS || stdenv.isLinux/*avoid rebuilds*/) ./implement-getgrouplist.patch
47
-
++ [ ./ucred-dirty-hack.patch ./no-create-dirs.patch ];
48
49
-
nativeBuildInputs = [ pkgconfig ];
50
-
propagatedBuildInputs = [ expat ];
51
-
buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux?
52
53
-
# build only the specified subdirs
54
-
postPatch = "sed '/SUBDIRS/s/=.*/=" + subdirs + "/' -i Makefile.am\n"
55
-
# use already packaged libdbus instead of trying to build it again
56
-
+ lib.optionalString (name != "libs") ''
57
-
for mfile in */Makefile.am; do
58
-
sed 's,\$(top_builddir)/dbus/\(libdbus-[0-9]\),${libs}/lib/\1,g' -i "$mfile"
59
-
done
60
-
'';
61
62
} merge ]);
63
···
3
, libX11, libICE, libSM, useX11 ? stdenv.isLinux }:
4
5
let
6
+
version = "1.6.14"; # 1.7.* isn't recommended, even for gnome 3.8
7
+
sha256 = "0v7mcxwfmpjf7vndnvf2kf02al61clrxs36bqii20s0lawfh2xjn";
8
9
inherit (stdenv) lib;
10
···
25
inherit sha256;
26
};
27
28
+
patches = [
29
+
./ignore-missing-includedirs.patch
30
+
./ucred-dirty-hack.patch
31
+
./no-create-dirs.patch
32
+
]
33
+
++ lib.optional (stdenv.isSunOS || stdenv.isLinux) ./implement-getgrouplist.patch
34
+
;
35
+
36
+
# build only the specified subdirs
37
+
postPatch = "sed '/SUBDIRS/s/=.*/=" + subdirs + "/' -i Makefile.am\n"
38
+
# use already packaged libdbus instead of trying to build it again
39
+
+ lib.optionalString (name != "libs") ''
40
+
for mfile in */Makefile.am; do
41
+
sed 's,\$(top_builddir)/dbus/\(libdbus-[0-9]\),${libs}/lib/\1,g' -i "$mfile"
42
+
done
43
+
'';
44
+
45
+
nativeBuildInputs = [ pkgconfig ];
46
+
propagatedBuildInputs = [ expat ];
47
+
buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux?
48
49
preConfigure = ''
50
patchShebangs .
···
52
autoreconf -fi
53
'';
54
55
+
configureFlags = [
56
+
"--localstatedir=/var"
57
+
"--sysconfdir=/etc"
58
+
"--with-session-socket-dir=/tmp"
59
+
"--with-systemdsystemunitdir=$(out)/lib/systemd"
60
+
];
61
62
+
enableParallelBuilding = true;
0
0
63
64
+
doCheck = true;
0
0
65
66
+
installFlags = "sysconfdir=$(out)/etc";
0
0
0
0
0
0
0
67
68
} merge ]);
69