koreader: build to install

launch doesn't work because it fails to load libSDL.so
This commit is contained in:
2023-07-21 11:03:11 +00:00
parent 9a2f648463
commit f223af584d

View File

@@ -131,6 +131,8 @@ stdenv.mkDerivation rec {
let let
env = "${buildPackages.coreutils}/bin/env"; env = "${buildPackages.coreutils}/bin/env";
in '' in ''
# patchShebangs platform/debian/do_debian_package.sh
substituteInPlace ../openssl/config --replace '/usr/bin/env' '${env}' substituteInPlace ../openssl/config --replace '/usr/bin/env' '${env}'
chmod +x ../glib/gio/gio-querymodules-wrapper.py chmod +x ../glib/gio/gio-querymodules-wrapper.py
@@ -217,7 +219,8 @@ stdenv.mkDerivation rec {
# might be safe to specify that as an env var, though? # might be safe to specify that as an env var, though?
installPhase = '' installPhase = ''
make TARGET=debian DEBIAN=1 update make TARGET=debian DEBIAN=1 debianupdate
mv koreader-debian-x86_64-unknown-linux-gnu/debian/usr $out
''; '';
passthru = { passthru = {