lemoa: todo: fold

This commit is contained in:
Colin 2023-12-19 19:39:11 +00:00
parent 0c34aec8ec
commit e96e07ac21
1 changed files with 18 additions and 0 deletions

View File

@ -1253,6 +1253,24 @@ in with final; {
# ```
# koreader-from-src = needsBinfmt prev.koreader-from-src;
lemoa = prev.lemoa.overrideAttrs (upstream:
let
rustTargetPlatform = rust.toRustTarget stdenv.hostPlatform;
in {
# nixpkgs sets CARGO_BUILD_TARGET to the build platform target, so correct that.
buildPhase = ''
runHook preBuild
mkdir -p target/release
ln -s ../${rustTargetPlatform}/release/lemoa target/release/lemoa
${rust.envVars.setEnv} "CARGO_BUILD_TARGET=${rustTargetPlatform}" ninja -j$NIX_BUILD_CORES
runHook postBuild
'';
}
);
# libgweather = rmNativeInputs [ glib ] (prev.libgweather.override {
# # alternative to emulating python3 is to specify it in `buildInputs` instead of `nativeBuildInputs` (upstream),
# # but presumably that's just a different way to emulate it.