Unverified Commit bcd43fb1 authored by Artturin's avatar Artturin Committed by GitHub
Browse files

double-conversion: Allow static linking (#322738)

parents 5b3e123c 2a5a7f39
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{ stdenv, lib, fetchFromGitHub, cmake }:
{ stdenv, lib, fetchFromGitHub, cmake, enableStatic ? stdenv.hostPlatform.isStatic }:

stdenv.mkDerivation rec {
  pname = "double-conversion";
@@ -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 ''