]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - pkgs/crypto/cardano/default.nix
Fix rainloop arguments
[perso/Immae/Config/Nix.git] / pkgs / crypto / cardano / default.nix
CommitLineData
dff8b593 1{ stdenv, mylibs }:
98de2045 2let
941bfb6f
IB
3 daedalusSrc = (mylibs.fetchedGithub ./daedalus.json).src;
4 daedalusOrig = (import daedalusSrc {}).daedalus;
98de2045
IB
5 cfg = stdenv.mkDerivation rec {
6 name = "launcher-config-custom";
941bfb6f 7 buildInputs = [ daedalusSrc daedalusOrig.cfg ];
98de2045
IB
8 src = daedalusOrig.cfg;
9 installPhase = ''
10 cp -a $src $out
11 chmod -R u+w $out
12 cd $out/etc
13 sed -e "/^walletPath/d" -e "/^walletArgs/d" launcher-config.yaml > launcher-config-server-only.yaml
14 '';
15 };
16in
17stdenv.mkDerivation rec {
18 name = "daedalus-custom";
19 src = daedalusOrig;
941bfb6f 20 buildInputs = [ cfg daedalusOrig ];
98de2045
IB
21 installPhase = ''
22 cp -a $src $out
23 chmod -R u+w $out
24 cd $out/bin
25 sed -i -e "s@${builtins.storeDir}/[0-9a-z]*-daedalus-config@${cfg}/etc@" daedalus
26 sed -e "s@${cfg}/etc/launcher-config.yaml@${cfg}/etc/launcher-config-server-only.yaml@" daedalus > daedalus-server-only
27 chmod a+x daedalus-server-only
28 '';
29}