about summary refs log tree commit diff stats
path: root/unmaintained_templates/nannou/shell.nix
blob: 6c4550a98e507977e7eea73c46f8e2ba87a9c788 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
  ]);
}