From 8d24e36a2fd9e6b177c8b3c24605d0f6334e2f66 Mon Sep 17 00:00:00 2001 From: emaryn Date: Thu, 22 May 2025 14:12:48 +0800 Subject: [PATCH] stockpile: init at 0.5.0 --- pkgs/by-name/st/stockpile/package.nix | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pkgs/by-name/st/stockpile/package.nix diff --git a/pkgs/by-name/st/stockpile/package.nix b/pkgs/by-name/st/stockpile/package.nix new file mode 100644 index 000000000000..9310ee53f519 --- /dev/null +++ b/pkgs/by-name/st/stockpile/package.nix @@ -0,0 +1,54 @@ +{ + lib, + stdenv, + fetchFromGitea, + meson, + ninja, + pkg-config, + vala, + wrapGAppsHook4, + blueprint-compiler, + desktop-file-utils, + appstream-glib, + libadwaita, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "stockpile"; + version = "0.5.0"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "turtle"; + repo = "stockpile"; + tag = finalAttrs.version; + hash = "sha256-e8mBZyZFGtiDGsAb4kyNOzLNA9GIE6X8buRJj6DCbxM="; + }; + + postPatch = '' + substituteInPlace meson.build \ + --replace-fail "run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()" "'${finalAttrs.version}'" + ''; + + nativeBuildInputs = [ + meson + ninja + pkg-config + desktop-file-utils + appstream-glib + blueprint-compiler + vala + wrapGAppsHook4 + ]; + + buildInputs = [ libadwaita ]; + + meta = { + description = "Keep count of restockable items"; + homepage = "https://codeberg.org/turtle/stockpile"; + mainProgram = "stockpile"; + license = lib.licenses.agpl3Plus; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ emaryn ]; + }; +})