about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-05 15:32:57 +0100
committerBaitinq <[email protected]>2025-01-05 15:32:57 +0100
commit324c53881eb21de4331a899f0724a6ea06c5efab (patch)
tree2a67fb5b519fb87247f1dcf419d22ce513082f7e /flake.nix
downloadinterpreter-324c53881eb21de4331a899f0724a6ea06c5efab.tar.gz
interpreter-324c53881eb21de4331a899f0724a6ea06c5efab.tar.bz2
interpreter-324c53881eb21de4331a899f0724a6ea06c5efab.zip
Initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..b84930d
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,29 @@
+{
+  description = "Renfe flake";
+
+  inputs = {
+    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+    zig.url = "github:mitchellh/zig-overlay";
+  };
+
+  outputs = {
+    self,
+    nixpkgs,
+    zig,
+  }: let
+    systems = ["x86_64-darwin" "aarch64-darwin" "x86_64-linux"];
+    createDevShell = system: let
+      pkgs = import nixpkgs {
+        system = "${system}";
+        config.allowUnfree = true;
+      };
+    in
+      pkgs.mkShell {
+        buildInputs = with pkgs; [
+            zig.packages."${system}".master
+        ];
+      };
+  in {
+    devShell = nixpkgs.lib.genAttrs systems createDevShell;
+  };
+}