1 { stdenv, lib, fetchFromGitHub, motif, xorg
2 , withAudioTracking ? false, libpulseaudio, aubio }:
6 version = "unstable-2021-11-15";
8 src = fetchFromGitHub {
11 rev = "b2f277974b5a80667647303cabf8a89d6d6a4290";
12 sha256 = "0ls02j9waqg155rj6whisqm7ppsdabgkrln92n4rmkgnwv25hdbi";
17 mkdir -p $out/share/man/man1
18 cp xclock.man $out/share/man/man1/xclock.1
21 makeFlags = [ "DESTINATION=$(out)/bin/" ]
22 ++ lib.optional withAudioTracking "WITH_TEMPO_TRACKER=1";
24 buildInputs = [ motif xorg.libX11 xorg.libXext xorg.libXt ]
25 ++ lib.optionals withAudioTracking [ libpulseaudio aubio ];
28 homepage = "http://codefromabove.com/2014/05/catclock/";
29 description = "Analog / Digital / Cat clock for X";
30 license = with licenses; mit;
31 maintainers = with maintainers; [ ramkromberg ];
32 mainProgram = "xclock";
33 platforms = with platforms; linux ++ darwin;