Skip to content

Commit 1947713

Browse files
authored
stockpile: init at 0.5.0 (#409652)
2 parents bcbe5a5 + 8d24e36 commit 1947713

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitea,
5+
meson,
6+
ninja,
7+
pkg-config,
8+
vala,
9+
wrapGAppsHook4,
10+
blueprint-compiler,
11+
desktop-file-utils,
12+
appstream-glib,
13+
libadwaita,
14+
}:
15+
16+
stdenv.mkDerivation (finalAttrs: {
17+
pname = "stockpile";
18+
version = "0.5.0";
19+
20+
src = fetchFromGitea {
21+
domain = "codeberg.org";
22+
owner = "turtle";
23+
repo = "stockpile";
24+
tag = finalAttrs.version;
25+
hash = "sha256-e8mBZyZFGtiDGsAb4kyNOzLNA9GIE6X8buRJj6DCbxM=";
26+
};
27+
28+
postPatch = ''
29+
substituteInPlace meson.build \
30+
--replace-fail "run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()" "'${finalAttrs.version}'"
31+
'';
32+
33+
nativeBuildInputs = [
34+
meson
35+
ninja
36+
pkg-config
37+
desktop-file-utils
38+
appstream-glib
39+
blueprint-compiler
40+
vala
41+
wrapGAppsHook4
42+
];
43+
44+
buildInputs = [ libadwaita ];
45+
46+
meta = {
47+
description = "Keep count of restockable items";
48+
homepage = "https://codeberg.org/turtle/stockpile";
49+
mainProgram = "stockpile";
50+
license = lib.licenses.agpl3Plus;
51+
platforms = lib.platforms.linux;
52+
maintainers = with lib.maintainers; [ emaryn ];
53+
};
54+
})

0 commit comments

Comments
 (0)