koreader-from-src: tidy

This commit is contained in:
2024-02-03 16:27:35 +00:00
parent 111946eb1d
commit 79736a4a0a

View File

@@ -163,7 +163,7 @@ stdenv.mkDerivation rec {
dontConfigure = true; dontConfigure = true;
buildPhase = '' buildPhase = ''
install_lib() { link_lib_src() {
lib="$1" lib="$1"
rev="$2" rev="$2"
platform="$3" platform="$3"
@@ -208,16 +208,16 @@ stdenv.mkDerivation rec {
chmod u+w -R "$prefix/src/$lib" chmod u+w -R "$prefix/src/$lib"
} }
'' + builtins.concatStringsSep "\n" (lib.mapAttrsToList ${builtins.concatStringsSep "\n" (lib.mapAttrsToList
(name: src: (name: src:
let let
# for machine-agnostic libraries (e.g. pure lua), koreader doesn't build them in a flavored directory # for machine-agnostic libraries (e.g. pure lua), koreader doesn't build them in a flavored directory
machine = if src.machineAgnostic or false then "" else stdenv.hostPlatform.config; machine = if src.machineAgnostic or false then "" else stdenv.hostPlatform.config;
in in
''install_lib "${name}" "${src.source.rev}" "${machine}"'' ''link_lib_src "${name}" "${src.source.rev}" "${machine}"''
) )
sources.thirdparty sources.thirdparty
) + '' )}
make TARGET=${target} DEBIAN=1 SHELL=sh VERBOSE=1 make TARGET=${target} DEBIAN=1 SHELL=sh VERBOSE=1
''; '';