Skip to content

Commit

Permalink
fixes nix-shell and decktape
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Starr committed Apr 24, 2024
1 parent 212cb00 commit fa2a53e
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
with import <nixpkgs> {};
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
autoPatchelfHook
];

stdenv.mkDerivation {
name = "node";
buildInputs = [
nodejs
hugo
just
];
shellHook = ''
export PATH="$PWD/node_modules/.bin/:$PATH"
'';
}
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"
'';
}

0 comments on commit fa2a53e

Please sign in to comment.