feat: Rust templates

This commit is contained in:
Kiana Sheibani 2025-11-26 17:45:12 -05:00
parent 50a0f0abc2
commit e5faf58ba8
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
33 changed files with 630 additions and 1 deletions

View file

@ -12,6 +12,7 @@
bash = "bash_script_nixpkgs";
fish = "fish_script_nixpkgs";
python = "python_pyproject_nixpkgs_basic";
rust = "rust_cargo-nightly_crane+fenix";
};
# Get all subdirectories of the given path
@ -35,7 +36,7 @@
${concatStringsSep "_" subds} = {
description = generateDesc subds;
path = filterSource
(p: _: baseNameOf p != "flake.lock")
(p: _: !(elem (baseNameOf p) [ "flake.lock" "Cargo.lock" ]))
(foldl' (dir: subd: /${dir}/${subd}) ./. subds);
};
}) (flakeSubdirs ./.) // mapAttrs (from: to: