2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, motif, xorg
|
2022-05-18 14:49:53 +00:00
|
|
|
, withAudioTracking ? false, libpulseaudio, aubio }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "catclock";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "unstable-2021-11-15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BarkyTheDog";
|
|
|
|
repo = "catclock";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "b2f277974b5a80667647303cabf8a89d6d6a4290";
|
|
|
|
sha256 = "0ls02j9waqg155rj6whisqm7ppsdabgkrln92n4rmkgnwv25hdbi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp xclock.man $out/share/man/man1/xclock.1
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
makeFlags = [ "DESTINATION=$(out)/bin/" ]
|
|
|
|
++ lib.optional withAudioTracking "WITH_TEMPO_TRACKER=1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
buildInputs = [ motif xorg.libX11 xorg.libXext xorg.libXt ]
|
2022-05-18 14:49:53 +00:00
|
|
|
++ lib.optionals withAudioTracking [ libpulseaudio aubio ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://codefromabove.com/2014/05/catclock/";
|
2022-05-18 14:49:53 +00:00
|
|
|
description = "Analog / Digital / Cat clock for X";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; mit;
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "xclock";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|