koreader: build to install

launch doesn't work because it fails to load libSDL.so
This commit is contained in:
Colin 2023-07-21 11:03:11 +00:00
parent 9a2f648463
commit f223af584d
1 changed files with 4 additions and 1 deletions

View File

@ -131,6 +131,8 @@ stdenv.mkDerivation rec {
let
env = "${buildPackages.coreutils}/bin/env";
in ''
# patchShebangs platform/debian/do_debian_package.sh
substituteInPlace ../openssl/config --replace '/usr/bin/env' '${env}'
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?
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 = {