naps2: 7.4.3 -> 7.5.3 and use non-EOL dotnet (#378332)

This commit is contained in:
Thiago Kenji Okada
2025-04-18 11:40:45 +01:00
committed by GitHub
2 changed files with 166 additions and 330 deletions
+148 -313
View File
File diff suppressed because it is too large Load Diff
+18 -17
View File
@@ -4,6 +4,7 @@
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub,
wrapGAppsHook3,
gtk3,
gdk-pixbuf,
glib,
@@ -13,34 +14,35 @@
buildDotnetModule rec {
pname = "naps2";
version = "7.4.3";
version = "7.5.3";
src = fetchFromGitHub {
owner = "cyanfish";
repo = "naps2";
rev = "v${version}";
hash = "sha256-/qSfxGHcCSoNp516LFYWgEL4csf8EKgtSffBt1C02uE=";
tag = "v${version}";
hash = "sha256-vX+ZyCQsYqJjgYaufWJRnzX8retiFK5QHSP40bbBaCc=";
};
projectFile = "NAPS2.App.Gtk/NAPS2.App.Gtk.csproj";
nugetDeps = ./deps.json;
postPatch = ''
substituteInPlace NAPS2.Images.Gtk/NAPS2.Images.Gtk.csproj \
--replace-fail TargetFramework TargetFrameworks \
'';
dotnetFlags = [
"-p:TargetFrameworks=net8"
"-p:EnablePreviewFeatures=true"
];
executables = [ "naps2" ];
dotnet-sdk =
with dotnetCorePackages;
sdk_8_0
// {
inherit
(combinePackages [
sdk_8_0
sdk_6_0-bin
])
packages
targetPackages
;
};
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
nativeBuildInputs = [ wrapGAppsHook3 ];
selfContainedBuild = true;
runtimeDeps = [
gtk3
@@ -68,7 +70,6 @@ buildDotnetModule rec {
maintainers = with lib.maintainers; [ eliandoran ];
platforms = lib.platforms.linux;
mainProgram = "naps2";
broken = stdenv.hostPlatform.isAarch64; # Google.Protobuf.Tools dependency fails to build.
};
}