WIP: build koreader from source
This commit is contained in:
52
pkgs/additional/koreader-from-src/default.nix
Normal file
52
pkgs/additional/koreader-from-src/default.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, fetchFromGitHub
|
||||
, dpkg
|
||||
, glib
|
||||
, gnutar
|
||||
, gtk3-x11
|
||||
, luajit
|
||||
, sdcv
|
||||
, SDL2 }:
|
||||
let
|
||||
luajit_lua52 = luajit.override { enable52Compat = true; };
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "koreader-from-src";
|
||||
version = "2023.06";
|
||||
src = fetchFromGitHub {
|
||||
repo = "koreader";
|
||||
owner = "koreader";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper dpkg ];
|
||||
buildInputs = [
|
||||
glib
|
||||
gnutar
|
||||
gtk3-x11
|
||||
luajit_lua52
|
||||
sdcv
|
||||
SDL2
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
make TARGET=debian DEBIAN=1 INSTALL_DIR="$out"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make TARGET=debian DEBIAN=1 INSTALL_DIR="$out" update
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/koreader/koreader";
|
||||
description =
|
||||
"An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices";
|
||||
sourceProvenance = with sourceTypes; [ fromSource ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ colinsane contrun neonfuz];
|
||||
};
|
||||
}
|
@@ -36,6 +36,7 @@ let
|
||||
gpodder-configured = callPackage ./additional/gpodder-configured { };
|
||||
hare-ev = unpatched.hare-ev or (callPackage ./additional/hare-ev { });
|
||||
hare-json = unpatched.hare-json or (callPackage ./additional/hare-json { });
|
||||
koreader-from-src = callPackage ./additional/koreader-from-src { };
|
||||
ldd-aarch64 = callPackage ./additional/ldd-aarch64 { };
|
||||
lightdm-mobile-greeter = callPackage ./additional/lightdm-mobile-greeter { };
|
||||
linux-megous = callPackage ./additional/linux-megous { };
|
||||
|
Reference in New Issue
Block a user