2022-05-06 21:00:09 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, xlibsWrapper, motif
|
|
|
|
, withAudioTracking ? false, libpulseaudio, aubio }:
|
2016-07-27 17:31:04 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "catclock";
|
2022-05-06 21:00:09 +00:00
|
|
|
version = "unstable-2021-11-15";
|
2016-07-27 17:31:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BarkyTheDog";
|
|
|
|
repo = "catclock";
|
2022-05-06 21:00:09 +00:00
|
|
|
rev = "b2f277974b5a80667647303cabf8a89d6d6a4290";
|
|
|
|
sha256 = "0ls02j9waqg155rj6whisqm7ppsdabgkrln92n4rmkgnwv25hdbi";
|
2016-07-27 17:31:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp xclock.man $out/share/man/man1/xclock.1
|
|
|
|
'';
|
|
|
|
|
2022-05-06 21:00:09 +00:00
|
|
|
makeFlags = [ "DESTINATION=$(out)/bin/" ]
|
|
|
|
++ lib.optional withAudioTracking "WITH_TEMPO_TRACKER=1";
|
2016-07-27 17:31:04 +00:00
|
|
|
|
2022-05-06 21:00:09 +00:00
|
|
|
buildInputs = [ xlibsWrapper motif ]
|
|
|
|
++ lib.optionals withAudioTracking [ libpulseaudio aubio ];
|
2016-07-27 17:31:04 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://codefromabove.com/2014/05/catclock/";
|
2022-05-06 21:00:09 +00:00
|
|
|
description = "Analog / Digital / Cat clock for X";
|
2016-07-27 17:31:04 +00:00
|
|
|
license = with licenses; mit;
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "xclock";
|
2016-07-31 08:41:20 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-07-27 17:31:04 +00:00
|
|
|
};
|
|
|
|
}
|