feat: replace jpassmenu with a python version
All checks were successful
/ check (push) Successful in 9s
/ build-packages (push) Successful in 15s
/ build-vm (push) Successful in 29s
/ report-size (push) Successful in 1m16s

There is no reason for it to be a Rust program
This commit is contained in:
Jalil David Salamé Messina 2025-05-17 12:07:49 +02:00
parent f082fe7a61
commit 1fdbf8af97
Signed by: jalil
GPG key ID: F016B9E770737A0B
13 changed files with 166 additions and 931 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 "jpassmenu" {
libraries = [ python3Packages.click ];
# line too long, but I like my code well documented
flakeIgnore = [ "E501" ];
} ./jpassmenu.py