Files
util.nix/template/rust/flake.nix
2026-01-04 20:40:43 +00:00

35 lines
726 B
Nix

{
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";
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; };
};
}
);
}