about summary refs log tree commit diff stats
path: root/unmaintained_templates/nannou/shell.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 12:54:37 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 12:54:37 +0200
commit08eb5c464906a29e9f5135e1fb11e872b93746b1 (patch)
treec1cbbeade93e8d74009273e51e9fb9744bcf3d0a /unmaintained_templates/nannou/shell.nix
parentdocs(update_common_files): Improve terminal output (diff)
downloadflake-templates-08eb5c464906a29e9f5135e1fb11e872b93746b1.tar.gz
flake-templates-08eb5c464906a29e9f5135e1fb11e872b93746b1.zip
refactor(templates/unmaintained): Move out of the templates dir
Otherwise, the `update_common_files` script will try to instantiate
files in there, which is just useless noise.
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
+  ]);
+}