diff --git a/default.nix b/default.nix deleted file mode 100644 index 102f003..0000000 --- a/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ pkgs ? import {} }: - -pkgs.stdenv.mkDerivation { - name = "webgpu"; - src = ./.; - - nativeBuildInputs = with pkgs; [ - cmake - wgpu-native - cglm - sdl3 - sdl3-image - nixgl.nixVulkanIntel - ]; - - buildInputs = with pkgs; [ - vulkan-headers - vulkan-loader - vulkan-tools - ]; - - buildPhase = '' - cmake . - make - ''; - - installPhase = '' - mkdir -p $out/bin - cp webgpu $out/bin - ''; -} diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 676acc1..0000000 --- a/flake.lock +++ /dev/null @@ -1,77 +0,0 @@ -{ - "nodes": { - "flake-utils": { - "locked": { - "lastModified": 1659877975, - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "nixgl": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1713543440, - "narHash": "sha256-lnzZQYG0+EXl/6NkGpyIz+FEOc/DSEG57AP1VsdeNrM=", - "owner": "nix-community", - "repo": "nixGL", - "rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nixGL", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1660551188, - "narHash": "sha256-a1LARMMYQ8DPx1BgoI/UN4bXe12hhZkCNqdxNi6uS0g=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "441dc5d512153039f19ef198e662e4f3dbb9fd65", - "type": "github" - }, - "original": { - "owner": "nixos", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_2": { - "locked": { - "lastModified": 1744463964, - "narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixgl": "nixgl", - "nixpkgs": "nixpkgs_2" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 2a0a350..0000000 --- a/flake.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ - description = "Development Environment"; - - inputs = { - nixgl.url = "github:nix-community/nixGL"; - nixpkgs.url= "github:nixos/nixpkgs/nixos-unstable"; - }; - - outputs = {self, nixpkgs, nixgl,...}: - let - pkgs = import nixpkgs { - system = "x86_64-linux"; - overlays = [ nixgl.overlay ]; - }; - in { - packages.x86_64-linux.default = (import ./default.nix { inherit pkgs; }); - devShells.x86_64-linux.default = (import ./shell.nix { inherit pkgs; }); - }; -} diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 6378cbd..0000000 --- a/shell.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ pkgs ? import {} }: - -pkgs.mkShell -{ - nativeBuildInputs = with pkgs; [ - cmake - wgpu-native - cglm - sdl3 - sdl3-image - nixgl.nixVulkanIntel - vulkan-headers - vulkan-loader - vulkan-tools - ]; - shellHook = '' - export PS1="(webgpu) $PS1" - ''; -}