2021-07-31 16:58:29 +02:00
|
|
|
{ pkgs ? import <nixpkgs> { inherit system; }, system ? builtins.currentSystem
|
|
|
|
|
}:
|
2020-09-10 16:39:11 +02:00
|
|
|
|
2021-07-31 16:58:29 +02:00
|
|
|
let derivations = import ./node2nix.nix { inherit pkgs system; };
|
|
|
|
|
in derivations // {
|
2020-09-10 16:39:11 +02:00
|
|
|
package = derivations.package.overrideAttrs (oldAttrs: rec {
|
|
|
|
|
# Puppeteer (a dependency for testing) would try to download Chromium
|
|
|
|
|
# during installation. Downloading Chromium would not work though because
|
|
|
|
|
# Nix builds are sandboxed and cannot download arbitrary things. We
|
|
|
|
|
# therefore prevent Puppeteer from downloading anything.
|
|
|
|
|
preInstallPhases = "skipChromiumDownload";
|
|
|
|
|
skipChromiumDownload = ''
|
|
|
|
|
export PUPPETEER_SKIP_DOWNLOAD=1
|
|
|
|
|
'';
|
|
|
|
|
});
|
|
|
|
|
}
|