From a4111ca13be320c73a1fcb87ae9bd9f11be6dfce Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Tue, 12 Nov 2024 00:22:43 -0600 Subject: [PATCH] Add shell.nix --- .envrc | 1 + .gitignore | 1 + shell.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..0a722d7 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix; diff --git a/.gitignore b/.gitignore index 0d4fa73..db60114 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ main index.html +.direnv diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7d09546 --- /dev/null +++ b/shell.nix @@ -0,0 +1,12 @@ +let + nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05"; + pkgs = import nixpkgs { config = {}; overlays = []; }; +in + +pkgs.mkShellNoCC { + packages = with pkgs; [ + go + xorg.xorgserver # xorg.xvfb once https://github.com/NixOS/nixpkgs/commit/43ebb05c575221362b44d7cc9a0f0cd1b5d3a53d hits stable + xorg.xauth + ]; +}