commit flake

This commit is contained in:
Jasper Ras 2026-02-26 19:49:56 +01:00
parent 3917d90016
commit 57cefc7165
2 changed files with 83 additions and 0 deletions

22
flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
description = "Template for Rust";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system :
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.x86_64-linux.default = pkgs.mkShell {
packages = [
pkgs.rustup pkgs.cargo pkgs.rustc-unwrapped
pkgs.rust-analyzer-unwrapped
];
};
}
);
}