libloot: fix custom yaml-cpp build (#444052)

Emily 6b99b65f 66e4a3a1

Changed files
+8 -12
pkgs
by-name
li
libloot
+8 -12
pkgs/by-name/li/libloot/package.nix
···
icu,
spdlog,
tbb_2022,
-
yaml-cpp,
}:
stdenv.mkDerivation (finalAttrs: {
···
(spdlog.override { fmt = fmt_11; })
tbb_2022
-
finalAttrs.passthru.yaml-cpp # has merge-key support
finalAttrs.passthru.libloadorder
finalAttrs.passthru.esplugin
finalAttrs.passthru.loot-condition-interpreter
···
(lib.cmakeFeature "LIBLOADORDER_LIBRARIES" "loadorder_ffi")
(lib.cmakeFeature "LCI_LIBRARIES" "loot_condition_interpreter_ffi")
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_TESTING-PLUGINS" "../testing-plugins")
(lib.cmakeBool "LIBLOOT_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
(lib.cmakeBool "LIBLOOT_INSTALL_DOCS" withDocs)
];
···
repo = "testing-plugins";
tag = "1.6.2";
hash = "sha256-3Aa98EwqpuGA3YlsRF8luWzXVEFO/rs6JXisXdLyIK4=";
};
buildRustFFIPackage =
···
lang = "c";
header = "loot_condition_interpreter.h";
-
};
-
-
yaml-cpp = yaml-cpp.overrideAttrs rec {
-
version = "0.8.0+merge-key-support.2";
-
src = fetchFromGitHub {
-
owner = "loot";
-
repo = "yaml-cpp";
-
tag = version;
-
hash = "sha256-whYorebrLiDeO75LC2SMUX/8OD528BR0+DEgnJxxpoQ=";
-
};
};
};
···
icu,
spdlog,
tbb_2022,
}:
stdenv.mkDerivation (finalAttrs: {
···
(spdlog.override { fmt = fmt_11; })
tbb_2022
finalAttrs.passthru.libloadorder
finalAttrs.passthru.esplugin
finalAttrs.passthru.loot-condition-interpreter
···
(lib.cmakeFeature "LIBLOADORDER_LIBRARIES" "loadorder_ffi")
(lib.cmakeFeature "LCI_LIBRARIES" "loot_condition_interpreter_ffi")
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_TESTING-PLUGINS" "../testing-plugins")
+
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_YAML-CPP" "${finalAttrs.passthru.yaml-cpp-src}")
(lib.cmakeBool "LIBLOOT_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
(lib.cmakeBool "LIBLOOT_INSTALL_DOCS" withDocs)
];
···
repo = "testing-plugins";
tag = "1.6.2";
hash = "sha256-3Aa98EwqpuGA3YlsRF8luWzXVEFO/rs6JXisXdLyIK4=";
+
};
+
+
yaml-cpp-src = fetchFromGitHub {
+
owner = "loot";
+
repo = "yaml-cpp";
+
tag = "0.8.0+merge-key-support.2";
+
hash = "sha256-whYorebrLiDeO75LC2SMUX/8OD528BR0+DEgnJxxpoQ=";
};
buildRustFFIPackage =
···
lang = "c";
header = "loot_condition_interpreter.h";
};
};