13 stdenv.mkDerivation (finalAttrs: {
15 version = "0-unstable-2024-04-19";
17 src = fetchFromGitHub {
18 owner = "gabrielzschmitz";
20 rev = "b3b85764362a7c120f3312f5b618102a4eac9f01";
21 hash = "sha256-7i+vn1dAK+bAGpBlKTnSBUpyJyRiPc7AiUF/tz+RyTI=";
25 substituteInPlace Makefile \
26 --replace-fail "sudo " ""
27 substituteInPlace notify.c \
28 --replace-fail "/usr/local" "${placeholder "out"}"
29 substituteInPlace util.c \
30 --replace-fail "/usr/local" "${placeholder "out"}"
31 substituteInPlace tomato.desktop \
32 --replace-fail "/usr/local" "${placeholder "out"}"
47 "PREFIX=${placeholder "out"}"
51 "CPPFLAGS=$NIX_CFLAGS_COMPILE"
52 "LDFLAGS=$NIX_LDFLAGS"
56 for file in $out/bin/*; do
70 homepage = "https://github.com/gabrielzschmitz/Tomato.C";
71 description = " A pomodoro timer written in pure C";
72 license = with lib.licenses; [ gpl3Plus ];
73 maintainers = with lib.maintainers; [ AndersonTorres ];
74 mainProgram = "tomato";
75 platforms = lib.platforms.unix;