nixpkgs/pkgs/by-name/de/denaro/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
2.1 KiB
Nix
Raw Normal View History

2023-01-29 00:30:29 -07:00
{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, gtk4
, libadwaita
, pkg-config
, wrapGAppsHook4
, glib
, shared-mime-info
, gdk-pixbuf
, blueprint-compiler
2023-01-29 00:30:29 -07:00
}:
buildDotnetModule rec {
pname = "denaro";
2024-02-05 11:08:02 -07:00
version = "2024.2.0";
2023-01-29 00:30:29 -07:00
src = fetchFromGitHub {
owner = "NickvisionApps";
repo = "Denaro";
2023-01-29 00:30:29 -07:00
rev = version;
2024-02-05 11:08:02 -07:00
hash = "sha256-fEhwup8SiYvKH2FtzruEFsj8axG5g3YJ917aqc8dn/8=";
2023-01-29 00:30:29 -07:00
};
2023-12-29 13:30:24 -07:00
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
2023-01-29 00:30:29 -07:00
projectFile = "NickvisionMoney.GNOME/NickvisionMoney.GNOME.csproj";
nugetDeps = ./deps.nix;
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
2023-01-29 00:30:29 -07:00
];
buildInputs = [ gtk4 libadwaita ]; # Used by blueprint-compiler
# Denaro switches installation tool frequently (bash -> just -> cake)
# For maintainability, let's do it ourselves
2023-01-29 00:30:29 -07:00
postInstall = ''
2023-12-29 13:30:24 -07:00
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/
2023-12-29 13:30:24 -07:00
install -Dm444 NickvisionMoney.Shared/Linux/org.nickvision.money.desktop.in -T $out/share/applications/org.nickvision.money.desktop
2023-01-29 00:30:29 -07:00
'';
runtimeDeps = [
gtk4
libadwaita
glib # Fixes "Could not retrieve parent type - is the typeid valid?"
2023-08-25 11:25:30 -06:00
gdk-pixbuf
2023-01-29 00:30:29 -07:00
];
passthru.updateScript = ./update.sh;
2023-01-29 00:30:29 -07:00
meta = with lib; {
description = "Personal finance manager for GNOME";
homepage = "https://github.com/nlogozzo/NickvisionMoney";
mainProgram = "NickvisionMoney.GNOME";
license = licenses.mit;
2023-02-10 01:34:11 -07:00
changelog = "https://github.com/nlogozzo/NickvisionMoney/releases/tag/${version}";
2023-09-08 20:42:18 -06:00
maintainers = with maintainers; [ chuangzhu kashw2 ];
2023-01-29 00:30:29 -07:00
platforms = platforms.linux;
};
}