mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
pkgsStatic.fmt: don't build shared libs
The change in `static.nix` was added in https://github.com/NixOS/nixpkgs/pull/76875 but apparently `enabledShared` got removed in the master/staging-next merge.
This commit is contained in:
parent
dc6e00eed4
commit
759a2815ec
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, cmake }:
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, cmake, enableShared ? true }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fmt";
|
||||
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
"-DBUILD_SHARED_LIBS=${if enableShared then "ON" else "OFF"}"
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user