Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

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
NixOS/nixpkgs#76875 but apparently
`enabledShared` got removed in the master/staging-next merge.
  • Loading branch information
FRidh committed Sep 27, 2020
1 parent dc6e00e commit 759a281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/fmt/default.nix
Original file line number Diff line number Diff line change
@@ -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 759a281

Please sign in to comment.