configuration.nix/scripts/audiomenu/package.nix
Jalil David Salamé Messina a12b2ba881
Some checks failed
/ check (push) Failing after 8s
/ check-renovaterc (push) Successful in 2s
/ build-packages (push) Has been skipped
/ build-vm (push) Has been skipped
/ report-size (push) Has been skipped
refactor: clean up scripts
Tidy up the script logic and deduplicate it a bit.
2025-05-16 19:04:21 +02:00

18 lines
494 B
Nix

{ lib, rustPlatform, cleanRustSrc }:
let
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
inherit (cargoToml.package) name version description;
pname = name;
src = cleanRustSrc ./.;
in
rustPlatform.buildRustPackage {
inherit pname version src;
cargoLock.lockFile = ./Cargo.lock;
useNextest = true;
meta = {
inherit description;
license = lib.licenses.mit;
homepage = "https://github.com/jalil-salame/configuration.nix";
mainProgram = name;
};
}