diff options
| author | Sam Estep <sam@samestep.com> | 2025-03-20 11:40:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-20 23:40:57 +0800 |
| commit | 9b1e10ea2602c76a97ca25c27a0b3842a5bb69de (patch) | |
| tree | ea86679dca57d7fffe69a10f31ffc77d86f07d69 /flake.nix | |
| parent | de6cc94e3b7fa5d1b8eeb53993dbf3ca2cec1cc1 (diff) | |
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 <ellieh@nvidia.com>
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 33 |
1 files changed, 33 insertions, 0 deletions
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 + ]; + }; + } + ); +} |
