feat: add templates
This commit is contained in:
34
template/rust/flake.nix
Normal file
34
template/rust/flake.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
description = "";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
util = {
|
||||
url = "github:hectic-lab/util.nix?ref=fix/postgres-extension";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, rust-overlay, util }:
|
||||
let
|
||||
overlays = [ (import rust-overlay) util.overlays.default ];
|
||||
in
|
||||
util.lib.forAllSystemsWithPkgs overlays ({ system, pkgs }:
|
||||
let
|
||||
lib = pkgs.lib;
|
||||
in
|
||||
{
|
||||
### DEV SHELL ###
|
||||
devShells.${system} = {
|
||||
default = import ./devshell/default.nix { inherit pkgs; };
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user