tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
hwdata: 0.314 → 0.316
Jan Tojnar
7 years ago
eadd0868
45a419ab
+7
-7
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
libosinfo
default.nix
os-specific
linux
hwdata
default.nix
usbutils
default.nix
+2
-2
pkgs/development/libraries/libosinfo/default.nix
···
38
38
'';
39
39
40
40
configureFlags = [
41
41
-
"--with-usb-ids-path=${hwdata}/data/hwdata/usb.ids"
42
42
-
"--with-pci-ids-path=${hwdata}/data/hwdata/pci.ids"
41
41
+
"--with-usb-ids-path=${hwdata}/share/hwdata/usb.ids"
42
42
+
"--with-pci-ids-path=${hwdata}/share/hwdata/pci.ids"
43
43
"--enable-gtk-doc"
44
44
];
45
45
+4
-4
pkgs/os-specific/linux/hwdata/default.nix
···
2
2
3
3
stdenv.mkDerivation rec {
4
4
name = "hwdata-${version}";
5
5
-
version = "0.314";
5
5
+
version = "0.316";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "vcrhonek";
9
9
repo = "hwdata";
10
10
rev = "v${version}";
11
11
-
sha256 = "12k466ndg152fqld1w5v1zfdyv000yypazcwy75ywlxvlknv4y90";
11
11
+
sha256 = "0k3fypykbq9943cnxlmmpk0xp9nhhf46pfdhkgm99iaa27b8s1gb";
12
12
};
13
13
14
14
preConfigure = "patchShebangs ./configure";
15
15
16
16
-
configureFlags = [ "--datadir=$(prefix)/data" ];
16
16
+
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
17
17
18
18
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
19
19
20
20
outputHashMode = "recursive";
21
21
outputHashAlgo = "sha256";
22
22
-
outputHash = "1w00y5kj8rd8slzydw1gw8cablxlkham4vq786kdd8zga286zabb";
22
22
+
outputHash = "0g2w4jr4p1hykracp2za7jb0rcr51kks1m43pzcaf7g99x8669ww";
23
23
24
24
meta = {
25
25
homepage = https://github.com/vcrhonek/hwdata;
+1
-1
pkgs/os-specific/linux/usbutils/default.nix
···
14
14
postInstall =
15
15
''
16
16
substituteInPlace $out/bin/lsusb.py \
17
17
-
--replace /usr/share/usb.ids ${hwdata}/data/hwdata/usb.ids
17
17
+
--replace /usr/share/usb.ids ${hwdata}/share/hwdata/usb.ids
18
18
'';
19
19
20
20
meta = with stdenv.lib; {