Unverified Commit 326d8411 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

Merge #316079: pciutils: 3.12.0 -> 3.13.0

...into staging
parents 6e234036 9722a074
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
{ 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}"