From 4609948f5749e39f6f1b72b8443c73fba4fa5a06 Mon Sep 17 00:00:00 2001 From: firestar99 Date: Tue, 7 Oct 2025 09:21:17 +0200 Subject: [PATCH] add nix-shell default.nix --- default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..a978e7a --- /dev/null +++ b/default.nix @@ -0,0 +1,15 @@ +let + pkgs = import {}; +in with pkgs; stdenv.mkDerivation rec { + name = "spirv-tools"; + + # Workaround for https://github.com/NixOS/nixpkgs/issues/60919. + # NOTE(eddyb) needed only in debug mode (warnings about needing optimizations + # turn into errors due to `-Werror`, for at least `spirv-tools-sys`). + hardeningDisable = [ "fortify" ]; + + # Allow cargo to download crates (even inside `nix-shell --pure`). + SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; + + nativeBuildInputs = [ rustup ]; +}