Skip to content

Commit 58b3329

Browse files
committed
add nix-shell default.nix
1 parent 07b3b5c commit 58b3329

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

default.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
let
2+
pkgs = import <nixpkgs> {};
3+
in with pkgs; stdenv.mkDerivation rec {
4+
name = "spirv-tools";
5+
6+
# Workaround for https://github.com/NixOS/nixpkgs/issues/60919.
7+
# NOTE(eddyb) needed only in debug mode (warnings about needing optimizations
8+
# turn into errors due to `-Werror`, for at least `spirv-tools-sys`).
9+
hardeningDisable = [ "fortify" ];
10+
11+
# Allow cargo to download crates (even inside `nix-shell --pure`).
12+
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
13+
14+
nativeBuildInputs = [ rustup ];
15+
}

0 commit comments

Comments
 (0)