]>
Commit | Line | Data |
---|---|---|
1 | { stdenv, fetchedGithub, fetchurl, fetchgit, callPackage, nodePackages, nodejs-8_x }: | |
2 | let | |
3 | nodeEnv = callPackage "${nodePackages.node2nix}/lib/node_modules/node2nix/nix/node-env.nix" { | |
4 | nodejs = nodejs-8_x; | |
5 | }; | |
6 | # built using node2nix -8 -l package-lock.json | |
7 | # and changing "./." to "src" | |
8 | packageEnv = import ./iota-cli-app-node-packages.nix { | |
9 | src = stdenv.mkDerivation (fetchedGithub ./iota-cli-app.json // { | |
10 | phases = "installPhase"; | |
11 | installPhase = '' | |
12 | cp -a $src $out | |
13 | chmod u+w -R $out | |
14 | cd $out | |
15 | sed -i -e "s@host: 'http://localhost',@host: 'https://iri.trytes.eu',@" index.js | |
16 | sed -i -e "s@port: 14265@port: 443@" index.js | |
17 | ''; | |
18 | }); | |
19 | inherit fetchurl fetchgit nodeEnv; | |
20 | }; | |
21 | in | |
22 | packageEnv.package |