From 9b1e10ea2602c76a97ca25c27a0b3842a5bb69de Mon Sep 17 00:00:00 2001 From: Sam Estep Date: Thu, 20 Mar 2025 11:40:57 -0400 Subject: Add Nix flake for direnv (#6635) * Add Nix flake for direnv * Use Sai's suggestion for the `description` * Make `.envrc` optional * Move Nix docs to their own section * Tweak wording * Tweak wording more * Add `nixfmt` --------- Co-authored-by: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Co-authored-by: Ellie Hermaszewska --- flake.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 000000000..211e5f107 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "The Slang Shading Language and Compiler"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = + { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShell = + with pkgs; + mkShell { + buildInputs = [ + cmake + llvm + ninja + nixfmt-rfc-style + python3 + xorg.libX11 + ]; + }; + } + ); +} -- cgit v1.2.3