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

@ -0,0 +1,23 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems, ... }:
let eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
packages = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
hello = pkgs.callPackage ./package.nix {};
default = self.packages.${system}.hello;
});
devShells = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = import ./shell.nix { inherit pkgs; };
});
};
}