Merge pull request #231925 from hall/koreader-aarch64

koreader: add support for aarch64-linux
This commit is contained in:
figsoda 2023-05-14 23:13:21 -04:00 committed by GitHub
commit d39fb92eb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,9 +16,12 @@ stdenv.mkDerivation rec {
pname = "koreader";
version = "2023.04";
src = fetchurl {
url =
"https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-amd64.deb";
src = if stdenv.isAarch64 then fetchurl {
url = "https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-arm64.deb";
sha256 = "sha256-uuspjno0750hQMIB5HEhbV63wCna2izKOHEGIg/X0bU=";
} else fetchurl {
url = "https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-amd64.deb";
sha256 = "sha256-tRUeRB1+UcWT49dchN0YDvd0L5n1YRdtMSFc8yy6m5o=";
};
@ -63,7 +66,7 @@ stdenv.mkDerivation rec {
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; [ binaryNativeCode ];
platforms = intersectLists platforms.x86_64 platforms.linux;
platforms = [ "aarch64-linux" "x86_64-linux" ];
license = licenses.agpl3Only;
maintainers = with maintainers; [ contrun neonfuz];
};