gittyup: Prefer using cmakeBool
This commit is contained in:
@@ -29,18 +29,22 @@ stdenv.mkDerivation rec {
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=OFF"
|
||||
"-DUSE_SYSTEM_CMARK=ON"
|
||||
"-DUSE_SYSTEM_GIT=ON"
|
||||
"-DUSE_SYSTEM_HUNSPELL=ON"
|
||||
# upstream uses its own fork of libgit2 as of 1.2.2, however this may change in the future
|
||||
# "-DUSE_SYSTEM_LIBGIT2=ON"
|
||||
"-DUSE_SYSTEM_LIBSSH2=ON"
|
||||
"-DUSE_SYSTEM_LUA=ON"
|
||||
"-DUSE_SYSTEM_OPENSSL=ON"
|
||||
"-DENABLE_UPDATE_OVER_GUI=OFF"
|
||||
];
|
||||
cmakeFlags =
|
||||
let
|
||||
inherit (lib) cmakeBool;
|
||||
in
|
||||
[
|
||||
(cmakeBool "BUILD_SHARED_LIBS" false)
|
||||
(cmakeBool "USE_SYSTEM_CMARK" true)
|
||||
(cmakeBool "USE_SYSTEM_GIT" true)
|
||||
(cmakeBool "USE_SYSTEM_HUNSPELL" true)
|
||||
# upstream uses its own fork of libgit2 as of 1.2.2, however this may change in the future
|
||||
# (cmakeBool "USE_SYSTEM_LIBGIT2" true)
|
||||
(cmakeBool "USE_SYSTEM_LIBSSH2" true)
|
||||
(cmakeBool "USE_SYSTEM_LUA" true)
|
||||
(cmakeBool "USE_SYSTEM_OPENSSL" true)
|
||||
(cmakeBool "ENABLE_UPDATE_OVER_GUI" false)
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
|
||||
Reference in New Issue
Block a user