From 7668df9e056d398ae6f8f16db2bb63dc29ef47ac Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 28 Aug 2023 12:05:43 -0400 Subject: [PATCH] glicol-cli: init at 0.2.0 https://github.com/glicol/glicol-cli --- .../applications/audio/glicol-cli/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/applications/audio/glicol-cli/default.nix diff --git a/pkgs/applications/audio/glicol-cli/default.nix b/pkgs/applications/audio/glicol-cli/default.nix new file mode 100644 index 000000000000..b549b6ac4fbe --- /dev/null +++ b/pkgs/applications/audio/glicol-cli/default.nix @@ -0,0 +1,42 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, stdenv +, darwin +, alsa-lib +}: + +rustPlatform.buildRustPackage rec { + pname = "glicol-cli"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "glicol"; + repo = "glicol-cli"; + rev = "v${version}"; + hash = "sha256-v90FfF4vP5UPy8VnQFvYMKiCrledgNMpWbJR59Cv6a0="; + }; + + cargoHash = "sha256-fJ18SwVMotepUvdNPQumFWoOaotDzGTerb+Iy+qq5w0="; + + nativeBuildInputs = [ + pkg-config + rustPlatform.bindgenHook + ]; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.AudioUnit + ] ++ lib.optionals stdenv.isLinux [ + alsa-lib + ]; + + meta = with lib; { + description = "Cross-platform music live coding in terminal"; + homepage = "https://github.com/glicol/glicol-cli"; + changelog = "https://github.com/glicol/glicol-cli/releases/tag/${src.rev}"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "glicol-cli"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5674a6f48f67..f068045ff65c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31752,6 +31752,8 @@ with pkgs; geoipupdate = callPackage ../applications/misc/geoipupdate { }; + glicol-cli = callPackage ../applications/audio/glicol-cli { }; + globe-cli = callPackage ../applications/misc/globe-cli { }; gnmic = callPackage ../applications/networking/gnmic { };