We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b3b5c commit 58b3329Copy full SHA for 58b3329
1 file changed
default.nix
@@ -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