17 stdenv.mkDerivation rec {
21 src = fetchFromGitLab {
22 domain = "gitlab.gnome.org";
26 hash = "sha256-Sn2Ua/XxPnJjcQvWeOPkphl+BE7/BdOrUIpf+tLt20U=";
29 cargoDeps = rustPlatform.fetchCargoTarball {
31 name = "metronome-${version}";
32 hash = "sha256-HYO/IY5yGW8JLBxD/SZz16GFnwvv77kFl/x+QXhV+V0=";
39 rustPlatform.cargoSetupHook
49 gst_all_1.gst-plugins-base
50 gst_all_1.gst-plugins-bad
51 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
52 darwin.apple_sdk.frameworks.Foundation
55 # Workaround for the gettext-sys issue
56 # https://github.com/Koka/gettext-rs/issues/114
57 env.NIX_CFLAGS_COMPILE = lib.optionalString
60 lib.versionAtLeast stdenv.cc.version "16"
62 "-Wno-error=incompatible-function-pointer-types";
65 description = "Keep the tempo";
67 Metronome beats the rhythm for you, you simply
68 need to tell it the required time signature and
69 beats per minutes. You can also tap to let the
70 application guess the required beats per minute.
72 homepage = "https://gitlab.gnome.org/World/metronome";
73 license = licenses.gpl3Plus;
74 mainProgram = "metronome";
75 maintainers = with maintainers; [ aleksana ];
76 platforms = platforms.unix;