paperlib: 3.1.6 -> 3.1.10

This commit is contained in:
emaryn 2025-02-11 19:08:18 +08:00 committed by emaryn
parent 8fdfc49bfc
commit 94ae1a6aae

View file

@ -4,20 +4,25 @@
fetchurl,
appimageTools,
undmg,
_7zz,
}:
let
pname = "paperlib";
version = "3.1.6";
version = "3.1.10";
src =
fetchurl
{
aarch64-darwin = {
url = "https://github.com/Future-Scholars/paperlib/releases/download/release-electron-${version}/Paperlib_${version}_arm.dmg";
hash = "sha256-KNMPUeCNtODHzMJhCwI4SJPRfa87RmAe6CRRazgRZCQ=";
};
x86_64-darwin = {
url = "https://github.com/Future-Scholars/paperlib/releases/download/release-electron-${version}/Paperlib_${version}.dmg";
hash = "sha256-d9vEFx59K15PO7DJYJQ2fjiagqa8oJLtoawILDF9IKc=";
hash = "sha256-5QwF0+7Y4LzReHCj8yZrAJDAZVyY0ANC5gjAxdaVRkU=";
};
x86_64-linux = {
url = "https://github.com/Future-Scholars/paperlib/releases/download/release-electron-${version}/Paperlib_${version}.AppImage";
hash = "sha256-2xbn9UWlcf37n9jZdZKyyevzsag6SW9YuQH/bYCRmLQ=";
hash = "sha256-uBYhiUL4YWwnLLPvXMoXjlQqlqFep/OpwwnmPx7s5dY=";
};
}
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
@ -32,6 +37,7 @@ let
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ByteSudoer ];
platforms = [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
@ -51,7 +57,7 @@ if stdenv.hostPlatform.isDarwin then
sourceRoot = ".";
nativeBuildInputs = [ undmg ];
nativeBuildInputs = if stdenv.hostPlatform.isAarch64 then [ _7zz ] else [ undmg ];
installPhase = ''
runHook preInstall