financier-nix/default.nix
Martin Puppe 98ab6e58f1 Fix src for financier
We accidentally used to rely on the src for financier not having been
garbage-collected.
2020-09-21 10:47:08 +02:00

21 lines
659 B
Nix

{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem}:
let
derivations = import ./node2nix.nix {
inherit pkgs system;
};
in
derivations // {
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
'';
});
}