lol
1{ lib, stdenv, fetchFromGitHub, rustPlatform, Foundation }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "pomodoro";
5 version = "unstable-2021-06-18";
6
7 src = fetchFromGitHub {
8 owner = "SanderJSA";
9 repo = "Pomodoro";
10 rev = "c833b9551ed0b09e311cdb369cc8226c5b9cac6a";
11 sha256 = "sha256-ZA1q1YVJcdSUF9NTikyT3vrRnqbsu5plzRI2gMu+qnQ=";
12 };
13
14 cargoSha256 = "sha256-6ZhWStZebXSwrej36DXifrsrmR1SWW3PwGUX0hqPwE4=";
15 buildInputs = lib.optionals stdenv.isDarwin [ Foundation ];
16
17 meta = with lib; {
18 description = "A simple CLI pomodoro timer using desktop notifications written in Rust";
19 homepage = "https://github.com/SanderJSA/Pomodoro";
20 license = licenses.mit;
21 maintainers = with maintainers; [ annaaurora ];
22 # error: redefinition of module 'ObjectiveC'
23 broken = stdenv.isDarwin;
24 };
25}