File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ let
2+ pkgs = import <nixpkgs> { } ;
3+ in
4+ with pkgs ;
5+ stdenv . mkDerivation rec {
6+ name = "rust-gpu-shadertoys" ;
7+
8+ # Workaround for https://github.com/NixOS/nixpkgs/issues/60919.
9+ # NOTE(eddyb) needed only in debug mode (warnings about needing optimizations
10+ # turn into errors due to `-Werror`, for at least `spirv-tools-sys`).
11+ hardeningDisable = [ "fortify" ] ;
12+
13+ # Allow cargo to download crates (even inside `nix-shell --pure`).
14+ SSL_CERT_FILE = "${ cacert } /etc/ssl/certs/ca-bundle.crt" ;
15+
16+ nativeBuildInputs = [ rustup ] ;
17+
18+ # Runtime dependencies (for the example runners).
19+ LD_LIBRARY_PATH = with xorg ;
20+ lib . makeLibraryPath [
21+ vulkan-loader
22+
23+ # NOTE(eddyb) winit really wants `libxkbcommon` on Wayland for some reason
24+ # (see https://github.com/rust-windowing/winit/issues/1760 for more info).
25+ wayland
26+ libxkbcommon
27+
28+ libX11
29+ libXcursor
30+ libXi
31+ libXrandr
32+ ] ;
33+ }
You can’t perform that action at this time.
0 commit comments