about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-01-13 21:05:51 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-01-13 21:25:48 +0100
commitea9a3f1af5fe7547617821614b8194e4f484a8e1 (patch)
tree5652060b962ba3c839ac1c18e0e000efaf6bd3e2 /flake.nix
downloadfs-tracer-ea9a3f1af5fe7547617821614b8194e4f484a8e1.tar.gz
fs-tracer-ea9a3f1af5fe7547617821614b8194e4f484a8e1.tar.bz2
fs-tracer-ea9a3f1af5fe7547617821614b8194e4f484a8e1.zip
Initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..1ddec3c
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,34 @@
+{
+  description = "FS Tracer Devshell";
+
+  inputs = {
+    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+    rust-overlay.url = "github:oxalica/rust-overlay";
+    flake-utils.url = "github:numtide/flake-utils";
+  };
+
+  outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
+    flake-utils.lib.eachDefaultSystem (system:
+      let
+        overlays = [ (import rust-overlay) ];
+        pkgs = import nixpkgs {
+          inherit system overlays;
+        };
+      in
+      with pkgs;
+      {
+        devShells.default = mkShell {
+          buildInputs = [
+            rust-analyzer
+            openssl
+            pkg-config
+            (rust-bin.nightly.latest.default.override {
+              extensions = [ "rust-src" ];
+              targets = [ "x86_64-unknown-linux-gnu" "wasm32-unknown-unknown" ];
+            })
+            trunk
+          ];
+        };
+      }
+    );
+}