mirror of
https://codeberg.org/puppe/financier-nix.git
synced 2025-12-20 08:22:18 +01:00
Initial commit
This commit is contained in:
commit
0d00fa5123
7 changed files with 121 additions and 0 deletions
40
default.nix
Normal file
40
default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem}:
|
||||
|
||||
let
|
||||
meta = import ./meta.nix;
|
||||
derivations = import ./node2nix.nix {
|
||||
inherit pkgs system;
|
||||
};
|
||||
in
|
||||
derivations // {
|
||||
package = derivations.package.overrideAttrs (oldAttrs: rec {
|
||||
src = pkgs.fetchgit { inherit (meta) url rev sha256; };
|
||||
# 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
|
||||
'';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue