]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - pkgs/crypto/iota-cli-app/default.nix
Small adjustments for naemon and web server
[perso/Immae/Config/Nix.git] / pkgs / crypto / iota-cli-app / default.nix
CommitLineData
258dd18b 1{ stdenv, mylibs, fetchurl, fetchgit, callPackage, nodePackages, nodejs-10_x }:
98de2045 2let
258dd18b 3 nodeEnv = callPackage mylibs.nodeEnv { nodejs = nodejs-10_x; };
98de2045
IB
4 # built using node2nix -8 -l package-lock.json
5 # and changing "./." to "src"
787fcba3 6 packageEnv = import ./node-packages.nix {
dff8b593 7 src = stdenv.mkDerivation (mylibs.fetchedGithub ./iota-cli-app.json // {
98de2045
IB
8 phases = "installPhase";
9 installPhase = ''
10 cp -a $src $out
11 chmod u+w -R $out
12 cd $out
01c4c5a4 13 sed -i -e "s@host: 'http://localhost',@host: 'https://nodes.thetangle.org',@" index.js
98de2045
IB
14 sed -i -e "s@port: 14265@port: 443@" index.js
15 '';
16 });
17 inherit fetchurl fetchgit nodeEnv;
18 };
19in
20packageEnv.package