tomato-c: init at unstable-2023-08-21

+69
+67
pkgs/applications/misc/tomato-c/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , libnotify 5 + , makeWrapper 6 + , mpv 7 + , ncurses 8 + , pkg-config 9 + }: 10 + 11 + stdenv.mkDerivation (finalAttrs: { 12 + pname = "tomato-c"; 13 + version = "unstable-2023-08-21"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "gabrielzschmitz"; 17 + repo = "Tomato.C"; 18 + rev = "6e43e85aa15f3d96811311a3950eba8ce9715634"; 19 + hash = "sha256-RpKkQ7xhM2XqfZdXra0ju0cTBL3Al9NMVQ/oleFydDs="; 20 + }; 21 + 22 + postPatch = '' 23 + substituteInPlace Makefile \ 24 + --replace "sudo " "" 25 + substituteInPlace notify.c \ 26 + --replace "/usr/local" "${placeholder "out"}" 27 + substituteInPlace util.c \ 28 + --replace "/usr/local" "${placeholder "out"}" 29 + substituteInPlace tomato.desktop \ 30 + --replace "/usr/local" "${placeholder "out"}" 31 + ''; 32 + 33 + nativeBuildInputs = [ 34 + makeWrapper 35 + pkg-config 36 + ]; 37 + 38 + buildInputs = [ 39 + libnotify 40 + mpv 41 + ncurses 42 + ]; 43 + 44 + installFlags = [ 45 + "PREFIX=${placeholder "out"}" 46 + "CPPFLAGS=$NIX_CFLAGS_COMPILE" 47 + "LDFLAGS=$NIX_LDFLAGS" 48 + ]; 49 + 50 + postFixup = '' 51 + for file in $out/bin/*; do 52 + wrapProgram $file \ 53 + --prefix PATH : ${lib.makeBinPath [ libnotify mpv ]} 54 + done 55 + ''; 56 + 57 + strictDeps = true; 58 + 59 + meta = { 60 + homepage = "https://github.com/gabrielzschmitz/Tomato.C"; 61 + description = " A pomodoro timer written in pure C"; 62 + license = with lib.licenses; [ gpl3Plus ]; 63 + maintainers = with lib.maintainers; [ AndersonTorres ]; 64 + mainProgram = "tomato"; 65 + platforms = lib.platforms.unix; 66 + }; 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 + tomato-c = callPackage ../applications/misc/tomato-c { }; 196 + 195 197 appflowy = callPackage ../applications/office/appflowy { }; 196 198 197 199 appimageTools = callPackage ../build-support/appimage { };