blob: 5cc967b5ef1d290abdfada9662d413aa28e3f3d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
catch2_3,
cmake,
fetchFromGitHub,
gtkmm4,
libadwaita,
pcre2,
pkg-config,
stdenv,
tinyxml-2,
wrapGAppsHook4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "progress-tracker";
version = "1.5.1";
src = fetchFromGitHub {
owner = "smolBlackCat";
repo = "progress-tracker";
rev = "v${finalAttrs.version}";
hash = "sha256-0FpWUNsXYIQRn6ciLoRbKBuEZT739sAAIfSBxFqfEpk=";
};
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook4
];
buildInputs = [
catch2_3
gtkmm4
libadwaita
pcre2
tinyxml-2
];
postPatch = ''
substituteInPlace src/CMakeLists.txt \
--replace-fail "/usr/bin/" "${placeholder "out"}/bin/"
substituteInPlace po/CMakeLists.txt \
--replace-fail "/usr/share/" "${placeholder "out"}/share/"
substituteInPlace data/CMakeLists.txt \
--replace-fail "/usr/share/" "${placeholder "out"}/share/"
'';
meta = {
description = "Simple kanban-style task organiser";
homepage = "https://github.com/smolBlackCat/progress-tracker";
license = lib.licenses.mit;
mainProgram = "progress";
maintainers = with lib.maintainers; [ Guanran928 ];
platforms = lib.platforms.linux;
};
})
|