summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--flake.lock25
-rw-r--r--flake.nix16
3 files changed, 42 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 53b6426..fb3f7ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
zig-*
*ppm
+result
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..78fe96a
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,25 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1705697961,
+ "narHash": "sha256-XepT3WS516evSFYkme3GrcI3+7uwXHqtHbip+t24J7E=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "e5d1c87f5813afde2dda384ac807c57a105721cc",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "type": "indirect"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..6052738
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,16 @@
+{
+ outputs = {
+ self,
+ nixpkgs,
+ }: let
+ pkgs = nixpkgs.legacyPackages.x86_64-linux;
+ in {
+ packages.x86_64-linux.default = pkgs.stdenv.mkDerivation {
+ name = "raytracing";
+ src = ./.;
+ nativeBuildInputs = [
+ pkgs.zig_0_10.hook
+ ];
+ };
+ };
+}