about summary refs log tree commit diff stats
path: root/unmaintained_templates/nannou/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained_templates/nannou/shell.nix')
-rw-r--r--unmaintained_templates/nannou/shell.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/unmaintained_templates/nannou/shell.nix b/unmaintained_templates/nannou/shell.nix
new file mode 100644
index 0000000..6c4550a
--- /dev/null
+++ b/unmaintained_templates/nannou/shell.nix
@@ -0,0 +1,25 @@
+#  A Creative Coding Framework for Rust.
+{
+  pkgs ? import <nixpkgs> {},
+  extraPkgs ? [],
+}:
+pkgs.mkShell {
+  buildInputs = with pkgs;
+    [
+      cargo
+      rustc
+      pkg-config
+      alsa-lib
+      cmake
+      openssl
+      xorg.libxcb
+    ]
+    ++ extraPkgs;
+  LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [
+    xorg.libX11
+    xorg.libXcursor
+    xorg.libXrandr
+    xorg.libXi
+    vulkan-loader
+  ]);
+}