mirror of
https://github.com/LucasVbr/dotfiles.git
synced 2026-05-13 17:12:10 +00:00
16 lines
332 B
Nix
16 lines
332 B
Nix
{pkgs ? import <nixpkgs> {}}: let
|
|
inherit (pkgs.stdenv) isLinux;
|
|
inherit (pkgs) lib;
|
|
in
|
|
pkgs.mkShell {
|
|
buildInputs = with pkgs; ([
|
|
nodejs
|
|
yarn
|
|
]
|
|
++ lib.optionals isLinux [chromium]);
|
|
PUPPETEER_EXECUTABLE_PATH =
|
|
if isLinux
|
|
then "${pkgs.chromium}/bin/chromium"
|
|
else "";
|
|
}
|