fmt: remove the enableShared option
Static libraries are to be provided by the pkgsStatic.fmt package.
This commit is contained in:
parent
d05ee9c8ff
commit
7e5b495851
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, enableShared ? true }:
|
{ stdenv, fetchFromGitHub, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "6.0.0";
|
version = "6.0.0";
|
||||||
@ -17,16 +17,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DFMT_TEST=TRUE"
|
"-DFMT_TEST=TRUE"
|
||||||
"-DBUILD_SHARED_LIBS=${if enableShared then "TRUE" else "FALSE"}"
|
"-DBUILD_SHARED_LIBS=TRUE"
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
# preCheckHook ensures the test binaries can find libfmt.so
|
# preCheckHook ensures the test binaries can find libfmt.so
|
||||||
preCheck = if enableShared
|
preCheck = ''
|
||||||
then "export LD_LIBRARY_PATH=\"$PWD\""
|
export LD_LIBRARY_PATH="$PWD"
|
||||||
else "";
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Small, safe and fast formatting library";
|
description = "Small, safe and fast formatting library";
|
||||||
|
Loading…
Reference in New Issue
Block a user