tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
modemmanager: 1.2.0 -> 1.4.6
William A. Kennington III
11 years ago
bb4bb9fc
c99fa3a2
+18
-2
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
modemmanager
default.nix
+18
-2
pkgs/tools/networking/modemmanager/default.nix
···
2
2
3
3
stdenv.mkDerivation rec {
4
4
name = "ModemManager-${version}";
5
5
-
version = "1.2.0";
5
5
+
version = "1.4.6";
6
6
7
7
src = fetchurl {
8
8
url = "http://www.freedesktop.org/software/ModemManager/${name}.tar.xz";
9
9
-
sha256 = "1g08ciyhys9bi5m45z30kln17zni4r07i5byjaglmwq6np1xincb";
9
9
+
sha256 = "1kd5nn5rm88c8rgmzwy2fsf3cr7fai7r85mi61kcby0hcgsapv8c";
10
10
};
11
11
12
12
nativeBuildInputs = [ intltool pkgconfig ];
···
17
17
"--with-polkit"
18
18
"--with-udev-base-dir=$(out)/lib/udev"
19
19
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
20
20
+
"--sysconfdir=/etc"
21
21
+
"--localstatedir=/var"
20
22
];
21
23
24
24
+
installFlags = [ "DESTDIR=\${out}" ];
25
25
+
26
26
+
preInstall = ''
27
27
+
mkdir -p $out/etc/systemd/system
28
28
+
'';
29
29
+
22
30
postInstall = ''
31
31
+
mv $out/$out/etc/systemd/system/ModemManager.service $out/etc/systemd/system
32
32
+
rm -rf $out/$out/etc
33
33
+
mv $out/$out/* $out
34
34
+
DIR=$out/$out
35
35
+
while rmdir $DIR 2>/dev/null; do
36
36
+
DIR="$(dirname "$DIR")"
37
37
+
done
38
38
+
23
39
# systemd in NixOS doesn't use `systemctl enable`, so we need to establish
24
40
# aliases ourselves.
25
41
ln -s $out/etc/systemd/system/ModemManager.service \