Merge #316079: pciutils: 3.12.0 -> 3.13.0

...into staging
This commit is contained in:
Vladimír Čunát 2024-06-24 09:44:52 +02:00
commit 326d84112c
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, zlib, kmod, which
{ lib, stdenv, fetchFromGitHub, pkg-config, zlib, kmod, which
, hwdata
, static ? stdenv.hostPlatform.isStatic
, IOKit
@ -7,11 +7,13 @@
stdenv.mkDerivation rec {
pname = "pciutils";
version = "3.12.0"; # with release-date database
version = "3.13.0"; # with release-date database
src = fetchurl {
url = "mirror://kernel/software/utils/pciutils/pciutils-${version}.tar.xz";
hash = "sha256-8YXRFtX/mbeXSX786PGfHujMxaZouXoVnj0TRy9nQVQ=";
src = fetchFromGitHub {
owner = "pciutils";
repo = "pciutils";
rev = "v${version}";
hash = "sha256-buhq7SN6eH+sckvT5mJ8eP4C1EP/4CUFt3gooJohJW0=";
};
nativeBuildInputs = [ pkg-config ];
@ -23,6 +25,8 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace 'CC=$(CROSS_COMPILE)gcc' ""
'';
enableParallelBuilding = true;
makeFlags = [
"SHARED=${if static then "no" else "yes"}"
"PREFIX=\${out}"