emaryn
2025-05-01 16:41:55 +00:00
committed by emaryn
parent 03f4f61409
commit 441ea5a9f4
2 changed files with 376 additions and 572 deletions
+363 -563
View File
File diff suppressed because it is too large Load Diff
+13 -9
View File
@@ -5,26 +5,27 @@
fetchFromGitHub,
dotnetCorePackages,
wrapGAppsHook3,
glew,
gtk3,
xorg,
}:
buildDotnetModule rec {
pname = "libation";
version = "11.5.5";
version = "12.3.1";
src = fetchFromGitHub {
owner = "rmcrackan";
repo = "Libation";
rev = "v${version}";
hash = "sha256-FD3f2Cba1xN15BloyRQ/m/vDovhN8x0AlfeJk+LGVV4=";
tag = "v${version}";
hash = "sha256-jir1r78HbAhlOiCj6pSw0+o4V9ceCkJQWnKtt6VzLDY=";
};
sourceRoot = "${src.name}/Source";
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
dotnet-sdk = dotnetCorePackages.sdk_9_0;
dotnet-runtime = dotnetCorePackages.runtime_9_0;
nugetDeps = ./deps.json;
@@ -45,6 +46,9 @@ buildDotnetModule rec {
runtimeDeps = [
# For Avalonia UI
glew
xorg.libXrandr
xorg.libXi
xorg.libXcursor
# For file dialogs
gtk3
];
@@ -53,7 +57,7 @@ buildDotnetModule rec {
install -Dm644 LoadByOS/LinuxConfigApp/libation_glass.svg $out/share/icons/hicolor/scalable/apps/libation.svg
install -Dm644 LoadByOS/LinuxConfigApp/Libation.desktop $out/share/applications/libation.desktop
substituteInPlace $out/share/applications/libation.desktop \
--replace-fail "/usr/bin/libation" "${meta.mainProgram}"
--replace-fail "/usr/bin/libation" "libation"
'';
# wrap manually, because we need lower case executables
@@ -75,10 +79,10 @@ buildDotnetModule rec {
'';
meta = {
changelog = "https://github.com/rmcrackan/Libation/releases/tag/${src.rev}";
changelog = "https://github.com/rmcrackan/Libation/releases/tag/v${version}";
description = "Audible audiobook manager";
homepage = "https://github.com/rmcrackan/Libation";
license = lib.licenses.gpl3Only;
license = lib.licenses.gpl3Plus;
mainProgram = "libation";
maintainers = with lib.maintainers; [ tomasajt ];
};