mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 14:56:43 +03:00
5e40066c7f
The strategy of invoking node2nix inside a derivation (installPhase in this case) does not work, as under NixOS installations there is no network traffic allowed during a derivation build. Hence, we move node2nix outside and rewrite the packaging into the modules. Also switch to callPackage instead of plain imports. This could probably be done on all other imported packages inside of nix-bitcoin-pkgs.nix.
21 lines
629 B
Nix
21 lines
629 B
Nix
# This file has been generated by node2nix 1.6.1. Do not edit!
|
|
|
|
{pkgs ? import <nixpkgs> {
|
|
inherit system;
|
|
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-10_x"}:
|
|
|
|
let
|
|
globalBuildInputs = pkgs.lib.attrValues (import ./supplement.nix {
|
|
inherit nodeEnv;
|
|
inherit (pkgs) fetchurl fetchgit;
|
|
});
|
|
nodeEnv = import ./node-env.nix {
|
|
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
|
|
inherit nodejs;
|
|
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
|
};
|
|
in
|
|
import ./node-packages.nix {
|
|
inherit (pkgs) fetchurl fetchgit;
|
|
inherit nodeEnv globalBuildInputs;
|
|
} |