aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-27 00:47:23 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-27 00:47:23 +0200
commit941bfb6ff039b6bfd94cc5aec8a0ef6dd1b82f36 (patch)
tree30163de53bd691adf5eaa8f0c2c3c11575f89bf8
parentdf90ef5e9c34552249735d6a23cee038dd674397 (diff)
downloadNix-941bfb6ff039b6bfd94cc5aec8a0ef6dd1b82f36.tar.gz
Nix-941bfb6ff039b6bfd94cc5aec8a0ef6dd1b82f36.tar.zst
Nix-941bfb6ff039b6bfd94cc5aec8a0ef6dd1b82f36.zip
Improve cardano to limit the undue garbage collections
-rw-r--r--pkgs/crypto/cardano/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/crypto/cardano/default.nix b/pkgs/crypto/cardano/default.nix
index 881928d..879fddb 100644
--- a/pkgs/crypto/cardano/default.nix
+++ b/pkgs/crypto/cardano/default.nix
@@ -1,8 +1,10 @@
1{ stdenv, mylibs }: 1{ stdenv, mylibs }:
2let 2let
3 daedalusOrig = (import (mylibs.fetchedGithub ./daedalus.json).src {}).daedalus; 3 daedalusSrc = (mylibs.fetchedGithub ./daedalus.json).src;
4 daedalusOrig = (import daedalusSrc {}).daedalus;
4 cfg = stdenv.mkDerivation rec { 5 cfg = stdenv.mkDerivation rec {
5 name = "launcher-config-custom"; 6 name = "launcher-config-custom";
7 buildInputs = [ daedalusSrc daedalusOrig.cfg ];
6 src = daedalusOrig.cfg; 8 src = daedalusOrig.cfg;
7 installPhase = '' 9 installPhase = ''
8 cp -a $src $out 10 cp -a $src $out
@@ -15,7 +17,7 @@ in
15stdenv.mkDerivation rec { 17stdenv.mkDerivation rec {
16 name = "daedalus-custom"; 18 name = "daedalus-custom";
17 src = daedalusOrig; 19 src = daedalusOrig;
18 buildInputs = [ daedalusOrig ]; 20 buildInputs = [ cfg daedalusOrig ];
19 installPhase = '' 21 installPhase = ''
20 cp -a $src $out 22 cp -a $src $out
21 chmod -R u+w $out 23 chmod -R u+w $out