]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame_incremental - pkgs/crypto/cardano/default.nix
Add timezone for Denise
[perso/Immae/Config/Nix.git] / pkgs / crypto / cardano / default.nix
... / ...
CommitLineData
1{ stdenv, mylibs }:
2let
3 daedalusSrc = (mylibs.fetchedGithub ./daedalus.json).src;
4 daedalusOrig = (import daedalusSrc {}).daedalus;
5 cfg = stdenv.mkDerivation rec {
6 name = "launcher-config-custom";
7 buildInputs = [ daedalusSrc daedalusOrig.cfg ];
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;
20 buildInputs = [ cfg daedalusOrig ];
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}