tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
tomato-c: init at unstable-2023-08-21
Anderson Torres
2 years ago
bad631ba
68e9e3bc
+69
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
tomato-c
default.nix
top-level
all-packages.nix
+67
pkgs/applications/misc/tomato-c/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, libnotify
5
5
+
, makeWrapper
6
6
+
, mpv
7
7
+
, ncurses
8
8
+
, pkg-config
9
9
+
}:
10
10
+
11
11
+
stdenv.mkDerivation (finalAttrs: {
12
12
+
pname = "tomato-c";
13
13
+
version = "unstable-2023-08-21";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "gabrielzschmitz";
17
17
+
repo = "Tomato.C";
18
18
+
rev = "6e43e85aa15f3d96811311a3950eba8ce9715634";
19
19
+
hash = "sha256-RpKkQ7xhM2XqfZdXra0ju0cTBL3Al9NMVQ/oleFydDs=";
20
20
+
};
21
21
+
22
22
+
postPatch = ''
23
23
+
substituteInPlace Makefile \
24
24
+
--replace "sudo " ""
25
25
+
substituteInPlace notify.c \
26
26
+
--replace "/usr/local" "${placeholder "out"}"
27
27
+
substituteInPlace util.c \
28
28
+
--replace "/usr/local" "${placeholder "out"}"
29
29
+
substituteInPlace tomato.desktop \
30
30
+
--replace "/usr/local" "${placeholder "out"}"
31
31
+
'';
32
32
+
33
33
+
nativeBuildInputs = [
34
34
+
makeWrapper
35
35
+
pkg-config
36
36
+
];
37
37
+
38
38
+
buildInputs = [
39
39
+
libnotify
40
40
+
mpv
41
41
+
ncurses
42
42
+
];
43
43
+
44
44
+
installFlags = [
45
45
+
"PREFIX=${placeholder "out"}"
46
46
+
"CPPFLAGS=$NIX_CFLAGS_COMPILE"
47
47
+
"LDFLAGS=$NIX_LDFLAGS"
48
48
+
];
49
49
+
50
50
+
postFixup = ''
51
51
+
for file in $out/bin/*; do
52
52
+
wrapProgram $file \
53
53
+
--prefix PATH : ${lib.makeBinPath [ libnotify mpv ]}
54
54
+
done
55
55
+
'';
56
56
+
57
57
+
strictDeps = true;
58
58
+
59
59
+
meta = {
60
60
+
homepage = "https://github.com/gabrielzschmitz/Tomato.C";
61
61
+
description = " A pomodoro timer written in pure C";
62
62
+
license = with lib.licenses; [ gpl3Plus ];
63
63
+
maintainers = with lib.maintainers; [ AndersonTorres ];
64
64
+
mainProgram = "tomato";
65
65
+
platforms = lib.platforms.unix;
66
66
+
};
67
67
+
})
+2
pkgs/top-level/all-packages.nix
···
192
192
meta.platforms = lib.platforms.linux;
193
193
} ../build-support/setup-hooks/auto-patchelf.sh;
194
194
195
195
+
tomato-c = callPackage ../applications/misc/tomato-c { };
196
196
+
195
197
appflowy = callPackage ../applications/office/appflowy { };
196
198
197
199
appimageTools = callPackage ../build-support/appimage { };