Skip to content

Commit

Permalink
pkgsStatic.fmt: don't build shared libs
Browse files Browse the repository at this point in the history
The change in `static.nix` was added in
#76875 but apparently
`enabledShared` got removed in the master/staging-next merge.

(cherry picked from commit 759a281)
  • Loading branch information
FRidh committed Sep 27, 2020
1 parent be95370 commit d4a8eb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/fmt/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, cmake }:
{ stdenv, fetchFromGitHub, fetchpatch, cmake, enableShared ? true }:

stdenv.mkDerivation rec {
pname = "fmt";
Expand Down Expand Up @@ -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
];

Expand Down

0 comments on commit d4a8eb2

Please sign in to comment.