depot/third_party/nixpkgs/pkgs/applications/audio/glicol-cli/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

42 lines
992 B
Nix

{ 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.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AudioUnit
] ++ lib.optionals stdenv.hostPlatform.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";
};
}