feat: rewrite audiomenu in Python
Some checks failed
/ check (push) Successful in 9s
/ build-packages (push) Failing after 15s
/ build-vm (push) Has been skipped
/ report-size (push) Has been skipped

There is no reason for it to be a Rust program
This commit is contained in:
Jalil David Salamé Messina 2025-05-17 14:13:57 +02:00
parent c65e793a85
commit 1d5160b669
Signed by: jalil
GPG key ID: F016B9E770737A0B
12 changed files with 290 additions and 857 deletions

View file

@ -1,22 +1,6 @@
{
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;
};
}
{ writers, python3Packages }:
writers.writePython3 "audiomenu" {
libraries = [ python3Packages.click ];
# line too long, but I like my code well documented
flakeIgnore = [ "E501" ];
} ./audiomenu.py