Skip to content

Commit

Permalink
double-conversion: Allow static linking (#322738)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Sep 11, 2024
2 parents 5b3e123 + 2a5a7f3 commit bcd43fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/double-conversion/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, cmake }:
{ stdenv, lib, fetchFromGitHub, cmake, enableStatic ? stdenv.hostPlatform.isStatic }:

stdenv.mkDerivation rec {
pname = "double-conversion";
Expand All @@ -13,7 +13,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
cmakeFlags = lib.optional (! enableStatic) "-DBUILD_SHARED_LIBS=ON";

# Case sensitivity issue
preConfigure = lib.optionalString stdenv.isDarwin ''
Expand Down

0 comments on commit bcd43fb

Please sign in to comment.