pciutils: support static compilation
Close PR #96012 (thanks). This "static style" was discussed on: https://github.com/NixOS/nixpkgs/pull/96223#issuecomment-681204478
This commit is contained in:
parent
5fa5d6d521
commit
82aeab778f
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, zlib, kmod, which }:
|
{ stdenv, fetchurl, pkgconfig, zlib, kmod, which
|
||||||
|
, static ? stdenv.targetPlatform.isStatic
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pciutils-3.7.0"; # with release-date database
|
name = "pciutils-3.7.0"; # with release-date database
|
||||||
@ -12,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ zlib kmod which ];
|
buildInputs = [ zlib kmod which ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"SHARED=yes"
|
"SHARED=${if static then "no" else "yes"}"
|
||||||
"PREFIX=\${out}"
|
"PREFIX=\${out}"
|
||||||
"STRIP="
|
"STRIP="
|
||||||
"HOST=${stdenv.hostPlatform.system}"
|
"HOST=${stdenv.hostPlatform.system}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user