@@ -1081,7 +1081,7 @@ builtins.intersectAttrs super {
10811081 addBuildTool self . buildHaskellPackages . gtk2hs-buildtools super . pango
10821082 ) ;
10831083
1084- spago =
1084+ spago-legacy =
10851085 let
10861086 docsSearchApp_0_0_10 = pkgs . fetchurl {
10871087 url = "https://github.com/purescript/purescript-docs-search/releases/download/v0.0.10/docs-search-app.js" ;
@@ -1103,49 +1103,43 @@ builtins.intersectAttrs super {
11031103 sha256 = "1hjdprm990vyxz86fgq14ajn0lkams7i00h8k2i2g1a0hjdwppq6" ;
11041104 } ;
11051105 in
1106- lib . pipe
1107- ( super . spago . override {
1108- # base <4.19, text <2.1
1109- versions = doJailbreak self . versions_5_0_5 ;
1110- fsnotify = self . fsnotify_0_3_0_1 ;
1111- } )
1112- [
1113- ( overrideCabal ( drv : {
1114- postUnpack = ( drv . postUnpack or "" ) + ''
1115- # Spago includes the following two files directly into the binary
1116- # with Template Haskell. They are fetched at build-time from the
1117- # `purescript-docs-search` repo above. If they cannot be fetched at
1118- # build-time, they are pulled in from the `templates/` directory in
1119- # the spago source.
1120- #
1121- # However, they are not actually available in the spago source, so they
1122- # need to fetched with nix and put in the correct place.
1123- # https://github.com/spacchetti/spago/issues/510
1124- cp ${ docsSearchApp_0_0_10 } "$sourceRoot/templates/docs-search-app-0.0.10.js"
1125- cp ${ docsSearchApp_0_0_11 } "$sourceRoot/templates/docs-search-app-0.0.11.js"
1126- cp ${ purescriptDocsSearch_0_0_10 } "$sourceRoot/templates/purescript-docs-search-0.0.10"
1127- cp ${ purescriptDocsSearch_0_0_11 } "$sourceRoot/templates/purescript-docs-search-0.0.11"
1128-
1129- # For some weird reason, on Darwin, the open(2) call to embed these files
1130- # requires write permissions. The easiest resolution is just to permit that
1131- # (doesn't cause any harm on other systems).
1132- chmod u+w \
1133- "$sourceRoot/templates/docs-search-app-0.0.10.js" \
1134- "$sourceRoot/templates/purescript-docs-search-0.0.10" \
1135- "$sourceRoot/templates/docs-search-app-0.0.11.js" \
1136- "$sourceRoot/templates/purescript-docs-search-0.0.11"
1137- '' ;
1138- } ) )
1106+ lib . pipe super . spago-legacy [
1107+ ( overrideCabal ( drv : {
1108+ postUnpack = ( drv . postUnpack or "" ) + ''
1109+ # Spago includes the following two files directly into the binary
1110+ # with Template Haskell. They are fetched at build-time from the
1111+ # `purescript-docs-search` repo above. If they cannot be fetched at
1112+ # build-time, they are pulled in from the `templates/` directory in
1113+ # the spago source.
1114+ #
1115+ # However, they are not actually available in the spago source, so they
1116+ # need to fetched with nix and put in the correct place.
1117+ # https://github.com/spacchetti/spago/issues/510
1118+ cp ${ docsSearchApp_0_0_10 } "$sourceRoot/templates/docs-search-app-0.0.10.js"
1119+ cp ${ docsSearchApp_0_0_11 } "$sourceRoot/templates/docs-search-app-0.0.11.js"
1120+ cp ${ purescriptDocsSearch_0_0_10 } "$sourceRoot/templates/purescript-docs-search-0.0.10"
1121+ cp ${ purescriptDocsSearch_0_0_11 } "$sourceRoot/templates/purescript-docs-search-0.0.11"
1122+
1123+ # For some weird reason, on Darwin, the open(2) call to embed these files
1124+ # requires write permissions. The easiest resolution is just to permit that
1125+ # (doesn't cause any harm on other systems).
1126+ chmod u+w \
1127+ "$sourceRoot/templates/docs-search-app-0.0.10.js" \
1128+ "$sourceRoot/templates/purescript-docs-search-0.0.10" \
1129+ "$sourceRoot/templates/docs-search-app-0.0.11.js" \
1130+ "$sourceRoot/templates/purescript-docs-search-0.0.11"
1131+ '' ;
1132+ } ) )
11391133
1140- # Tests require network access.
1141- dontCheck
1134+ # Tests require network access.
1135+ dontCheck
11421136
1143- # Overly strict upper bound on text
1144- doJailbreak
1137+ # Overly strict upper bound on text (<1.3)
1138+ doJailbreak
11451139
1146- # Generate shell completion for spago
1147- ( self . generateOptparseApplicativeCompletions [ "spago" ] )
1148- ] ;
1140+ # Generate shell completion for spago
1141+ ( self . generateOptparseApplicativeCompletions [ "spago" ] )
1142+ ] ;
11491143
11501144 # checks SQL statements at compile time, and so requires a running PostgreSQL
11511145 # database to run it's test suite
0 commit comments