mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #69483 from nmattia/nm-libpfm-static
libpfm: enable static build
This commit is contained in:
commit
4c5cad9f63
2 changed files with 9 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, enableShared ? true }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (rec {
|
||||
version = "4.10.1";
|
||||
pname = "libpfm";
|
||||
|
||||
|
@ -30,4 +30,8 @@ stdenv.mkDerivation rec {
|
|||
maintainers = [ maintainers.pierron ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
} // stdenv.lib.optionalAttrs ( ! enableShared )
|
||||
{
|
||||
CONFIG_PFMLIB_SHARED = "n";
|
||||
}
|
||||
)
|
||||
|
|
|
@ -95,6 +95,9 @@ in {
|
|||
libiberty = super.libiberty.override {
|
||||
staticBuild = true;
|
||||
};
|
||||
libpfm = super.libpfm.override {
|
||||
enableShared = false;
|
||||
};
|
||||
ipmitool = super.ipmitool.override {
|
||||
static = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue