From fa2a53e1861be889e2562b48f2a1bd9e6035f29b Mon Sep 17 00:00:00 2001 From: Joe Starr Date: Wed, 24 Apr 2024 09:59:44 -0500 Subject: [PATCH] fixes nix-shell and decktape --- shell.nix | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/shell.nix b/shell.nix index e7a234d6..49afc5da 100644 --- a/shell.nix +++ b/shell.nix @@ -1,13 +1,19 @@ -with import {}; +{ pkgs ? import { } }: +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + autoPatchelfHook + ]; -stdenv.mkDerivation { - name = "node"; - buildInputs = [ - nodejs - hugo - just - ]; - shellHook = '' - export PATH="$PWD/node_modules/.bin/:$PATH" - ''; -} \ No newline at end of file + buildInputs = with pkgs; [ + jq + nodejs + hugo + just + ]; + + shellHook = '' + export PATH="$PWD/node_modules/.bin/:$PATH" + alias scripts='jq ".scripts" package.json' + export PUPPETEER_EXECUTABLE_PATH="${pkgs.chromium.outPath}/bin/chromium" + ''; +}