stockpile: init at 0.5.0 (#409652)

This commit is contained in:
Aleksana
2025-05-23 15:46:48 +08:00
committed by GitHub
+54
View File
@@ -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 ];
};
})