feat: Rust templates
This commit is contained in:
parent
50a0f0abc2
commit
e5faf58ba8
33 changed files with 630 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue