diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-03-22 16:41:59 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-03-22 16:41:59 +0100 |
commit | 46a88117a05c3469af5d99433af140c3de8ca088 (patch) | |
tree | d7f0557756d8f07a3081b3498c05ddc5a8ad429d /nixpkgs/pkgs/by-name/ch | |
parent | e97457545cea0b2ca421da257c83d8f1ef451d85 (diff) | |
parent | a343533bccc62400e8a9560423486a3b6c11a23b (diff) | |
download | nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.gz nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.bz2 nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.lz nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.xz nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.zst nixlib-46a88117a05c3469af5d99433af140c3de8ca088.zip |
Merge commit 'a343533bccc62400e8a9560423486a3b6c11a23b'
Diffstat (limited to 'nixpkgs/pkgs/by-name/ch')
-rw-r--r-- | nixpkgs/pkgs/by-name/ch/chromatic/package.nix | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ch/chromatic/package.nix b/nixpkgs/pkgs/by-name/ch/chromatic/package.nix new file mode 100644 index 000000000000..7eaae7818543 --- /dev/null +++ b/nixpkgs/pkgs/by-name/ch/chromatic/package.nix @@ -0,0 +1,69 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, meson +, ninja +, pkg-config +, rustc +, cargo +, wrapGAppsHook4 +, desktop-file-utils +, libxml2 +, libadwaita +, portaudio +, libpulseaudio +}: + +stdenv.mkDerivation rec { + pname = "chromatic"; + version = "0-unstable-2023-08-05"; + + src = fetchFromGitHub { + owner = "nate-xyz"; + repo = "chromatic"; + rev = "ffaeb50dcce74bf3ba1b05f98423cf48f205f55e"; + hash = "sha256-E3v3UoQumBBYDOiXMfCRh5J7bfUCkettHth7SAresCE="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src; + name = "${pname}-${version}"; + hash = "sha256-M3UMeGkLf57/I/9BIkyiMpOvjbKQJrOk+axf05vRoW0="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + rustPlatform.cargoSetupHook + rustc + cargo + wrapGAppsHook4 + desktop-file-utils + libxml2.bin # xmllint + ]; + + buildInputs = [ + libadwaita + portaudio + libpulseaudio + ]; + + meta = with lib; { + description = "Fine-tune your instruments"; + longDescription = '' + Fine-tune your instruments with Chromatic. Chromatic + detects the frequency of audio input, converts it to + a musical note with the correct semitone and octave, + and displays the cents error. Cents are displayed on + an analog gauge to make tuning more visually intuitive. + Requires PulseAudio or PipeWire. + ''; + homepage = "https://github.com/nate-xyz/chromatic"; + license = licenses.gpl3Plus; + mainProgram = "chromatic"; + maintainers = with maintainers; [ aleksana ]; + platforms = platforms.linux; + }; +} |