Merge pull request #113151 from iblech/patch-pciutils
This commit is contained in:
commit
f0c82514df
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/vcrhonek/hwdata";
|
homepage = "https://github.com/vcrhonek/hwdata";
|
||||||
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
||||||
license = lib.licenses.gpl2;
|
license = lib.licenses.gpl2Plus;
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, zlib, kmod, which
|
{ lib, stdenv, fetchurl, pkg-config, zlib, kmod, which
|
||||||
|
, hwdata
|
||||||
, static ? stdenv.hostPlatform.isStatic
|
, static ? stdenv.hostPlatform.isStatic
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
}:
|
}:
|
||||||
@ -30,8 +31,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installTargets = [ "install" "install-lib" ];
|
installTargets = [ "install" "install-lib" ];
|
||||||
|
|
||||||
# Get rid of update-pciids as it won't work.
|
postInstall = ''
|
||||||
postInstall = "rm $out/sbin/update-pciids $out/man/man8/update-pciids.8";
|
# Remove update-pciids as it won't work on nixos
|
||||||
|
rm $out/sbin/update-pciids $out/man/man8/update-pciids.8
|
||||||
|
|
||||||
|
# use database from hwdata instead
|
||||||
|
# (we don't create a symbolic link because we do not want to pull in the
|
||||||
|
# full closure of hwdata)
|
||||||
|
cp --reflink=auto ${hwdata}/share/hwdata/pci.ids $out/share/pci.ids
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://mj.ucw.cz/pciutils.html";
|
homepage = "http://mj.ucw.cz/pciutils.html";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user