Last active
December 3, 2021 17:25
-
-
Save patrickod/faf79a066226a972eabd63dab841a065 to your computer and use it in GitHub Desktop.
Revisions
-
patrickod renamed this gist
Dec 3, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
patrickod revised this gist
Nov 28, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pkgs = import nixpkgs { inherit system overlays; }; rust = pkgs.rust-bin.stable."1.56.1".default.override { extensions = [ "clippy-preview" "rust-src" -
patrickod revised this gist
Nov 21, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ { description = "rust nannou graphics & art development"; inputs = { nixpkgs.url = "github:nixos/nixpkgs"; rust-overlay.url = "github:oxalica/rust-overlay"; flake-utils.url = "github:numtide/flake-utils"; }; -
patrickod created this gist
Nov 21, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,51 @@ { description = "rust nannou graphics & art development"; inputs = { nixpkgs.url = "github:patrickod/nixpkgs"; rust-overlay.url = "github:oxalica/rust-overlay"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: with nixpkgs; let overlays = [ (import rust-overlay) ]; pkgs = import nixpkgs { inherit system overlays; }; rust = pkgs.rust-bin."1.56.1".default.override { extensions = [ "clippy-preview" "rust-src" "rustfmt-preview" "rust-analysis" ]; }; in { devShell = pkgs.mkShell rec { buildInputs = [ rust pkgs.cmake pkgs.pkg-config pkgs.python39 pkgs.alsa-lib pkgs.xorg.libX11 pkgs.xorg.libXcursor pkgs.xorg.libXrandr pkgs.xorg.libXi pkgs.vulkan-tools pkgs.vulkan-headers pkgs.vulkan-loader pkgs.vulkan-validation-layers ]; # important environment variables LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; }; } ); }