From 242ab70aaf78bb4e47a196574b8da5173e24bfe1 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Sun, 3 Aug 2025 17:19:31 +0200 Subject: [PATCH] add very basic rust proj template --- rust-project/flake.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 rust-project/flake.nix diff --git a/rust-project/flake.nix b/rust-project/flake.nix new file mode 100644 index 0000000..db1b961 --- /dev/null +++ b/rust-project/flake.nix @@ -0,0 +1,17 @@ +{ + description = "Basic Rust project"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in { + devShells.x86_64-linux.default = pkgs.mkShell { + packages = [ pkgs.rustup ]; + }; + }; +}