tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Remove ancient version of udev
Eelco Dolstra
10 years ago
ab91aaae
bfedb494
-54
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
udev
145.nix
top-level
all-packages.nix
-53
pkgs/os-specific/linux/udev/145.nix
···
1
-
{ stdenv, fetchurl, gperf, pkgconfig, glib, acl, libusb, usbutils, pciutils }:
2
-
3
-
assert stdenv ? glibc;
4
-
5
-
stdenv.mkDerivation rec {
6
-
name = "udev-145";
7
-
8
-
src = fetchurl {
9
-
url = "mirror://kernel/linux/utils/kernel/hotplug/${name}.tar.bz2";
10
-
sha256 = "1zmibp6n7d582fqx8vmg9vb2a1435hghfpz36056bc25ccwf7yiv";
11
-
};
12
-
13
-
buildInputs = [gperf pkgconfig glib acl libusb usbutils];
14
-
15
-
configureFlags = "--with-pci-ids-path=${pciutils}/share/pci.ids";
16
-
17
-
preConfigure =
18
-
''
19
-
substituteInPlace extras/keymap/Makefile.in \
20
-
--replace /usr/include ${stdenv.glibc}/include
21
-
'';
22
-
23
-
postInstall =
24
-
''
25
-
# Install some rules that really should be installed by default.
26
-
for i in 40-alsa.rules 40-infiniband.rules 40-isdn.rules 40-pilot-links.rules 64-device-mapper.rules 64-md-raid.rules; do
27
-
cp rules/packages/$i $out/libexec/rules.d/
28
-
done
29
-
30
-
# The path to rule_generator.functions in write_cd_rules and
31
-
# write_net_rules is broken. Also, don't store the mutable
32
-
# persistant rules in /etc/udev/rules.d but in
33
-
# /var/lib/udev/rules.d.
34
-
for i in $out/libexec/write_cd_rules $out/libexec/write_net_rules; do
35
-
substituteInPlace $i \
36
-
--replace /lib/udev $out/libexec \
37
-
--replace /etc/udev/rules.d /var/lib/udev/rules.d
38
-
done
39
-
40
-
# Don't set PATH to /bin:/sbin; won't work in NixOS.
41
-
substituteInPlace $out/libexec/rule_generator.functions \
42
-
--replace 'PATH=' '#PATH='
43
-
44
-
# Don't hardcore the FIRMWARE_DIRS variable; obtain it from the
45
-
# environment of the caller.
46
-
sed '3,4d' -i $out/libexec/firmware.sh
47
-
'';
48
-
49
-
meta = {
50
-
homepage = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html;
51
-
description = "Udev manages the /dev filesystem";
52
-
};
53
-
}
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-1
pkgs/top-level/all-packages.nix
···
9808
cross = assert crossSystem != null; crossSystem;
9809
});
9810
9811
-
udev145 = callPackage ../os-specific/linux/udev/145.nix { };
9812
udev = pkgs.systemd;
9813
eudev = callPackage ../os-specific/linux/eudev {};
9814
···
9808
cross = assert crossSystem != null; crossSystem;
9809
});
9810
0
9811
udev = pkgs.systemd;
9812
eudev = callPackage ../os-specific/linux/eudev {};
9813