diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 49013b9..6072d60 100644 --- a/default.nix +++ b/default.nix | |||
@@ -316,6 +316,75 @@ let | |||
316 | 316 | ||
317 | mypkgs.yarn2nix = yarn2nixPackage.yarn2nix; | 317 | mypkgs.yarn2nix = yarn2nixPackage.yarn2nix; |
318 | 318 | ||
319 | mypkgs.cardano = let | ||
320 | daedalusOrig = (import (fetchedGithub ./fetched/daedalus.json).src {}).daedalus; | ||
321 | cfg = stdenv.mkDerivation rec { | ||
322 | name = "launcher-config-custom"; | ||
323 | src = daedalusOrig.cfg; | ||
324 | installPhase = '' | ||
325 | cp -a $src $out | ||
326 | chmod -R u+w $out | ||
327 | cd $out/etc | ||
328 | sed -e "/^walletPath/d" -e "/^walletArgs/d" launcher-config.yaml > launcher-config-server-only.yaml | ||
329 | ''; | ||
330 | }; | ||
331 | daedalus = stdenv.mkDerivation rec { | ||
332 | name = "daedalus-custom"; | ||
333 | src = daedalusOrig; | ||
334 | installPhase = '' | ||
335 | cp -a $src $out | ||
336 | chmod -R u+w $out | ||
337 | cd $out/bin | ||
338 | sed -i -e "s@${builtins.storeDir}/[0-9a-z]*-daedalus-config@${cfg}/etc@" daedalus | ||
339 | sed -e "s@${cfg}/etc/launcher-config.yaml@${cfg}/etc/launcher-config-server-only.yaml@" daedalus > daedalus-server-only | ||
340 | chmod a+x daedalus-server-only | ||
341 | ''; | ||
342 | }; | ||
343 | in | ||
344 | daedalus; | ||
345 | |||
346 | mypkgs.sia = stdenv.mkDerivation rec { | ||
347 | version = "v1.3.7"; | ||
348 | name = "Sia-${version}"; | ||
349 | src = fetchzip { | ||
350 | url = "https://sia.tech/static/releases/${name}-linux-amd64.zip"; | ||
351 | sha256 = "1ljzwrlkx4hc16r8siiyakn039afipp95dyr83c8yfq3r3bfasqd"; | ||
352 | }; | ||
353 | phases = "installPhase"; | ||
354 | installPhase = '' | ||
355 | mkdir -p $out/share/doc | ||
356 | mkdir -p $out/bin | ||
357 | mkdir -p $out/share/sia | ||
358 | cp -a $src/doc $out/share/doc/sia | ||
359 | cp -a $src/LICENSE $src/README.md $out/share/sia | ||
360 | cp -a $src/{siac,siad} $out/bin | ||
361 | cp -a $src/{siac,siad}.sig $out/share/sia/ | ||
362 | ''; | ||
363 | }; | ||
364 | |||
365 | mypkgs.iota-cli-app = let | ||
366 | nodeEnv = pkgs.callPackage "${nodePackages.node2nix}/lib/node_modules/node2nix/nix/node-env.nix" { | ||
367 | nodejs = nodejs-8_x; | ||
368 | }; | ||
369 | # built using node2nix -8 -l package-lock.json | ||
370 | # and changing "./." to "src" | ||
371 | packageEnv = import ./fetched/iota-cli-app-node-packages.nix { | ||
372 | src = stdenv.mkDerivation (fetchedGithub ./fetched/iota-cli-app.json // { | ||
373 | phases = "installPhase"; | ||
374 | installPhase = '' | ||
375 | cp -a $src $out | ||
376 | chmod u+w -R $out | ||
377 | cd $out | ||
378 | sed -i -e "s@host: 'http://localhost',@host: 'https://iri.trytes.eu',@" index.js | ||
379 | sed -i -e "s@port: 14265@port: 443@" index.js | ||
380 | ''; | ||
381 | }); | ||
382 | inherit (pkgs) fetchurl fetchgit; | ||
383 | inherit nodeEnv; | ||
384 | }; | ||
385 | in | ||
386 | packageEnv.package; | ||
387 | |||
319 | mypkgs.sc-im = sc-im.overrideAttrs (old: { | 388 | mypkgs.sc-im = sc-im.overrideAttrs (old: { |
320 | buildPhase = '' | 389 | buildPhase = '' |
321 | cd src | 390 | cd src |
@@ -409,6 +478,7 @@ in | |||
409 | inherit rr; | 478 | inherit rr; |
410 | inherit nix-zsh-completions; | 479 | inherit nix-zsh-completions; |
411 | inherit browsh; | 480 | inherit browsh; |
481 | inherit monero; | ||
412 | stgit = gitAndTools.stgit; | 482 | stgit = gitAndTools.stgit; |
413 | # todo: lx* ?, unrar, unzip, zeromq? | 483 | # todo: lx* ?, unrar, unzip, zeromq? |
414 | #inherit nextcloud-client; | 484 | #inherit nextcloud-client; |