nixpkgs/pkgs/by-name/ca/catclock/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
1.0 KiB
Nix

{ stdenv, lib, fetchFromGitHub, motif, xorg
, withAudioTracking ? false, libpulseaudio, aubio }:
stdenv.mkDerivation {
pname = "catclock";
version = "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/" ]
++ 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;
};
}