feat: rewrite audiomenu in Python
There is no reason for it to be a Rust program
This commit is contained in:
parent
c65e793a85
commit
0a9d16fb9a
12 changed files with 295 additions and 857 deletions
|
@ -1,22 +1,9 @@
|
|||
{
|
||||
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 ];
|
||||
|
||||
flakeIgnore = [
|
||||
"E501" # line too long, but I like my code well documented
|
||||
"W503" # line break before binary operator, ruff does this, I trust it
|
||||
];
|
||||
} ./audiomenu.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue