nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 libpthreadstubs,
7 icu,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "peaclock";
12 version = "0.4.3";
13
14 src = fetchFromGitHub {
15 owner = "octobanana";
16 repo = pname;
17 rev = version;
18 sha256 = "1582vgslhpgbvcd7ipgf1d1razrvgpq1f93q069yr2bbk6xn8i16";
19 };
20
21 nativeBuildInputs = [ cmake ];
22 buildInputs = [
23 libpthreadstubs
24 icu
25 ];
26
27 meta = with lib; {
28 description = "Clock, timer, and stopwatch for the terminal";
29 homepage = "https://octobanana.com/software/peaclock";
30 license = licenses.mit;
31 platforms = platforms.unix;
32 maintainers = with maintainers; [ djanatyn ];
33 mainProgram = "peaclock";
34 };
35}