File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 385
385
LANG = "en_US.UTF-8" ;
386
386
meta . platforms = pkgs . lib . platforms . all ;
387
387
preferLocalBuild = false ;
388
- outputs = [ "out" "json" ] ;
388
+ outputs = [ "out" "json" "freeze" ] ;
389
389
} ''
390
390
tmp=$(mktemp -d)
391
391
cd $tmp
421
421
${ pkgs . lib . optionalString ( cabalProjectFreeze != null ) ''
422
422
cp ${ pkgs . evalPackages . writeText "cabal.project.freeze" cabalProjectFreeze } \
423
423
cabal.project.freeze
424
+ chmod +w cabal.project.freeze
424
425
'' }
425
426
export SSL_CERT_FILE=${ cacert } /etc/ssl/certs/ca-bundle.crt
426
427
export GIT_SSL_CAINFO=${ cacert } /etc/ssl/certs/ca-bundle.crt
436
437
index-state = cached-index-state ;
437
438
sha256 = index-sha256-found ;
438
439
}
439
- } cabal v2-configure \
440
+ } cabal v2-freeze \
440
441
--index-state=${
441
442
# Setting the desired `index-state` here in case it was not
442
443
# from the cabal.project file. This will further restrict the
453
454
"--ghcjs --with-ghcjs=js-unknown-ghcjs-ghc --with-ghcjs-pkg=js-unknown-ghcjs-ghc-pkg" } \
454
455
${ configureArgs }
455
456
457
+ cp cabal.project.freeze $freeze
458
+ # Not needed any more (we don't want it to wind up in the $out hash)
459
+ rm cabal.project.freeze
460
+
456
461
mkdir -p $out
457
462
458
463
# ensure we have all our .cabal files (also those generated from package.yaml) files.
You can’t perform that action at this time.
0 commit comments