Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
79 lines
2.2 KiB
Nix
79 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
buildDotnetModule,
|
|
fetchFromGitHub,
|
|
dotnetCorePackages,
|
|
gtk4,
|
|
libadwaita,
|
|
pkg-config,
|
|
wrapGAppsHook4,
|
|
glib,
|
|
shared-mime-info,
|
|
gdk-pixbuf,
|
|
blueprint-compiler,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "denaro";
|
|
version = "2024.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NickvisionApps";
|
|
repo = "Denaro";
|
|
rev = version;
|
|
hash = "sha256-fEhwup8SiYvKH2FtzruEFsj8axG5g3YJ917aqc8dn/8=";
|
|
};
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
|
|
|
projectFile = "NickvisionMoney.GNOME/NickvisionMoney.GNOME.csproj";
|
|
nugetDeps = ./deps.json;
|
|
executables = "NickvisionMoney.GNOME";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
glib # For glib-compile-resources
|
|
shared-mime-info # For update-mime-database
|
|
gdk-pixbuf # Fixes icon missing in envs where GDK_PIXBUF_MODULE_FILE is not set
|
|
blueprint-compiler
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4
|
|
libadwaita
|
|
]; # Used by blueprint-compiler
|
|
|
|
# Denaro switches installation tool frequently (bash -> just -> cake)
|
|
# For maintainability, let's do it ourselves
|
|
postInstall = ''
|
|
substituteInPlace NickvisionMoney.Shared/Linux/org.nickvision.money.desktop.in --replace '@EXEC@' "NickvisionMoney.GNOME"
|
|
install -Dm444 NickvisionMoney.Shared/Resources/org.nickvision.money.svg -t $out/share/icons/hicolor/scalable/apps/
|
|
install -Dm444 NickvisionMoney.Shared/Resources/org.nickvision.money-symbolic.svg -t $out/share/icons/hicolor/symbolic/apps/
|
|
install -Dm444 NickvisionMoney.Shared/Linux/org.nickvision.money.desktop.in -T $out/share/applications/org.nickvision.money.desktop
|
|
'';
|
|
|
|
runtimeDeps = [
|
|
gtk4
|
|
libadwaita
|
|
glib # Fixes "Could not retrieve parent type - is the typeid valid?"
|
|
gdk-pixbuf
|
|
];
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "Personal finance manager for GNOME";
|
|
homepage = "https://github.com/nlogozzo/NickvisionMoney";
|
|
mainProgram = "NickvisionMoney.GNOME";
|
|
license = lib.licenses.mit;
|
|
changelog = "https://github.com/nlogozzo/NickvisionMoney/releases/tag/${version}";
|
|
maintainers = with lib.maintainers; [
|
|
chuangzhu
|
|
kashw2
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|