blob: 8279bfc6b30db2d092ea239f09a424fe0f710c50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.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";
};
}
|