Nix flake for cliamp, a terminal music player by Bjarne Øverli.
Every release is exposed as its own package attribute (cliamp_1_57_1), and cliamp/default always track the newest.
nix run github:CarlosMendonca/cliamp-flakenix shell github:CarlosMendonca/cliamp-flake
cliampEach release is available as cliamp_<version>, with dots replaced by underscores:
nix run github:CarlosMendonca/cliamp-flake#cliamp_1_21_4
nix shell github:CarlosMendonca/cliamp-flake#cliamp_1_57_1
nix profile install github:CarlosMendonca/cliamp-flake#cliamp_1_57_1Add the flake as an input:
inputs.cliamp.url = "github:CarlosMendonca/cliamp-flake";To reuse your existing nixpkgs instead of pulling in a separate one:
inputs.cliamp.inputs.nixpkgs.follows = "nixpkgs";Then add a package — either the latest or a pinned version:
environment.systemPackages = [
inputs.cliamp.packages.${system}.cliamp # newest
# inputs.cliamp.packages.${system}.cliamp_1_21_4 # a specific release
];
# or in home-manager:
home.packages = [ inputs.cliamp.packages.${system}.cliamp ];Apply overlays.default to fold every version into your pkgs:
nixpkgs.overlays = [ inputs.cliamp.overlays.default ];
# then, anywhere pkgs is in scope:
environment.systemPackages = [
pkgs.cliamp # newest
# pkgs.cliamp_1_21_4 # a specific release
];Older releases remain reachable through git-tag pinning as well:
inputs.cliamp.url = "github:CarlosMendonca/cliamp-flake?ref=v1.21.4";git clone https://github.com/CarlosMendonca/cliamp-flake
cd cliamp-flake
nix build
./result/bin/cliampdata/cliamp.json is the single source of truth. To append the latest upstream release (computing its srcHash and vendorHash):
nix run .#updateThis runs automatically every two hours via GitHub Actions.
cliamp v1.57.1