File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 463
463
${ builtins . concatStringsSep "\n " ( pkgs . lib . mapAttrsToList f inputMap ) }
464
464
'' ;
465
465
} ;
466
- f = name : index : "http:// ${ name } \t file://${ index } " ;
466
+ f = name : index : "${ name } \t file://${ index } " ;
467
467
in
468
468
evalPackages . writeShellApplication {
469
469
name = "curl" ;
@@ -567,22 +567,21 @@ let
567
567
export SSL_CERT_FILE=${ cacert } /etc/ssl/certs/ca-bundle.crt
568
568
export GIT_SSL_CAINFO=${ cacert } /etc/ssl/certs/ca-bundle.crt
569
569
570
- export HOME =$(mktemp -d)
570
+ export CABAL_DIR =$(mktemp -d)
571
571
572
- mkdir $HOME/.cabal
573
- cat >$HOME/.cabal/config <<EOF
572
+ cat >$CABAL_DIR/config <<EOF
574
573
repository hackage.haskell.org
575
574
url: http://hackage.haskell.org/
576
575
secure: True
577
- root-keys: aaa -- DO NOT ASK ME
576
+ root-keys: aaa
578
577
key-threshold: 0
579
578
EOF
580
- cat $HOME/.cabal /config
579
+ cat $CABAL_DIR /config
581
580
582
581
PATH=${
583
- fakeCurl {
584
- "hackage.haskell.org" = hackageRepo { index-state = cached-index-state ; sha256 = index-sha256-found ; } ;
585
- }
582
+ fakeCurl ( {
583
+ "http:// hackage.haskell.org" = hackageRepo { index-state = cached-index-state ; sha256 = index-sha256-found ; } ;
584
+ } // inputMap )
586
585
} /bin:$PATH \
587
586
cabal update -v \
588
587
-w ${ ghc . targetPrefix } ghc \
You can’t perform that action at this time.
0 commit comments