summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-04-12 21:04:21 +0200
committerMel <einebeere@gmail.com>2024-04-12 21:04:21 +0200
commit019b6fef94c8c8893ab8c4d6a87655b2e8999259 (patch)
tree7b6af91e3c5e007ae55951c9713f3998ce282d41 /flake.nix
parent1aed0a492d8bc0b70f3c63143d1ca19bf873ccb0 (diff)
downloadmeowcraft-019b6fef94c8c8893ab8c4d6a87655b2e8999259.tar.zst
meowcraft-019b6fef94c8c8893ab8c4d6a87655b2e8999259.zip
Build with Nix flakes (x86_64-darwin only, for now)
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..8d3da4e
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,17 @@
+{
+  description = "a dumb minecraft in c++ and opengl.";
+
+  inputs = {
+    nixpkgs.url = "nixpkgs/nixos-23.11";
+  };
+
+  outputs = { self, nixpkgs }: 
+  let
+    system = "x86_64-darwin";
+    pkgs = import nixpkgs { inherit system; };
+  in {
+    packages = { 
+      ${system}.default = pkgs.callPackage ./. {};
+    };
+  };
+}