diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2024-01-21 11:14:44 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2024-01-21 11:14:44 +0100 |
commit | 81fc6d3abd8768efe2f47098d0e7bb7782820d0a (patch) | |
tree | 3652adce9acdd55ecd74d6dd96f2125a986b4371 | |
parent | 39b57fa0729d16873193947b12e59a7da52695fa (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | flake.lock | 25 | ||||
-rw-r--r-- | flake.nix | 16 |
3 files changed, 42 insertions, 0 deletions
@@ -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 + ]; + }; + }; +} |