fmt: remove the enableShared option

Static libraries are to be provided by the pkgsStatic.fmt package.
This commit is contained in:
Dmitry Kalinkin 2019-12-31 18:25:53 -05:00
parent d05ee9c8ff
commit 7e5b495851
No known key found for this signature in database
GPG Key ID: 06AF1D3C38F04E0E

View File

@ -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";