File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
# To avoid downloading more data than necessary this will provide a base.
6
6
cachedState = runCommand "hackage-${ builtins . substring 0 4 indexState } " { } ''
7
7
mkdir -p $out
8
- HOME=$out ${ cabal-install } /bin/cabal new- update 'hackage.haskell.org, ${ builtins . substring 0 4 indexState } -01-01T00:00:00Z'
8
+ HOME=$out ${ cabal-install } /bin/cabal update --index-state=' ${ builtins . substring 0 4 indexState } -01-01T00:00:00Z'
9
9
'' ;
10
10
in runCommand "hackage-${ builtins . replaceStrings [ ":" ] [ "" ] indexState } " { } ''
11
11
mkdir -p $out
12
12
cp -r ${ cachedState } /.cabal $out
13
13
chmod +w -R $out/.cabal
14
14
sed -i.back -e "s|${ cachedState } |$out|g" $out/.cabal/config
15
- HOME=$out ${ cabal-install } /bin/cabal new- update 'hackage.haskell.org, ${ indexState } '
15
+ HOME=$out ${ cabal-install } /bin/cabal update --index-state=' ${ indexState } '
16
16
''
You can’t perform that action at this time.
0 commit comments