Files
2026-08-22 09:44:05 +02:00

44 lines
999 B
Nix

{
description = "A retro terminal music player inspired by Winamp";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs }:
let
systems = [
"aarch64-linux"
"x86_64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
version =
if self ? shortRev then
self.shortRev
else if self ? dirtyShortRev then
self.dirtyShortRev
else
"dev";
in
{
packages = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
cliamp = pkgs.callPackage ./nix/package.nix { inherit version; };
in
{
inherit cliamp;
default = cliamp;
}
);
apps = forAllSystems (system: {
default = {
type = "app";
program = nixpkgs.lib.getExe self.packages.${system}.default;
meta.description = "Run cliamp";
};
});
};
}