nixpkgs/pkgs/applications/misc/catclock/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, motif, xorg
2022-05-06 21:00:09 +00:00
, withAudioTracking ? false, libpulseaudio, aubio }:
2016-07-27 17:31:04 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
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
buildInputs = [ motif xorg.libX11 xorg.libXext xorg.libXt ]
2022-05-06 21:00:09 +00:00
++ lib.optionals withAudioTracking [ libpulseaudio aubio ];
2016-07-27 17:31:04 +00:00
meta = with lib; {
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 ];
mainProgram = "xclock";
2016-07-31 08:41:20 +00:00
platforms = with platforms; linux ++ darwin;
2016-07-27 17:31:04 +00:00
};
}