Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
motif,
|
|
xorg,
|
|
withAudioTracking ? false,
|
|
libpulseaudio,
|
|
aubio,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "catclock";
|
|
version = "0-unstable-2021-11-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BarkyTheDog";
|
|
repo = "catclock";
|
|
rev = "b2f277974b5a80667647303cabf8a89d6d6a4290";
|
|
sha256 = "0ls02j9waqg155rj6whisqm7ppsdabgkrln92n4rmkgnwv25hdbi";
|
|
};
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/share/man/man1
|
|
cp xclock.man $out/share/man/man1/xclock.1
|
|
'';
|
|
|
|
makeFlags = [
|
|
"DESTINATION=$(out)/bin/"
|
|
"CFLAGS=-Wno-incompatible-pointer-types"
|
|
]
|
|
++ lib.optional withAudioTracking "WITH_TEMPO_TRACKER=1";
|
|
|
|
buildInputs = [
|
|
motif
|
|
xorg.libX11
|
|
xorg.libXext
|
|
xorg.libXt
|
|
]
|
|
++ lib.optionals withAudioTracking [
|
|
libpulseaudio
|
|
aubio
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://codefromabove.com/2014/05/catclock/";
|
|
description = "Analog / Digital / Cat clock for X";
|
|
license = with licenses; mit;
|
|
maintainers = with maintainers; [ ramkromberg ];
|
|
mainProgram = "xclock";
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|