nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 stdenv,
7 alsa-lib,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "glicol-cli";
12 version = "0.2.0";
13
14 src = fetchFromGitHub {
15 owner = "glicol";
16 repo = "glicol-cli";
17 rev = "v${version}";
18 hash = "sha256-v90FfF4vP5UPy8VnQFvYMKiCrledgNMpWbJR59Cv6a0=";
19 };
20
21 cargoHash = "sha256-u6H+4cikI/jmcKpA2Ty2DjZF8wLiNylFMInA6sdNl0k=";
22
23 nativeBuildInputs = [
24 pkg-config
25 rustPlatform.bindgenHook
26 ];
27
28 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
29 alsa-lib
30 ];
31
32 meta = {
33 description = "Cross-platform music live coding in terminal";
34 homepage = "https://github.com/glicol/glicol-cli";
35 changelog = "https://github.com/glicol/glicol-cli/releases/tag/${src.rev}";
36 license = lib.licenses.mit;
37 maintainers = [ ];
38 mainProgram = "glicol-cli";
39 # The last successful Darwin Hydra build was in 2023
40 broken = stdenv.hostPlatform.isDarwin;
41 };
42}