File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,15 @@ in rec {
210210
211211 serverExe = backend : frontend : assets : optimizationLevel : externjs : version :
212212 let
213- exeBackend = if profiling then backend else haskellLib . justStaticExecutables backend ;
213+ exeBackend = if profiling then backend else haskellLib . overrideCabal
214+ ( haskellLib . justStaticExecutables backend )
215+ ( _ : {
216+ # Newer nixpkgs version make sure that static executables don’t pull in GHC via their closure.
217+ # This remove-references-to fixes that for normal obelisk backends.
218+ postInstall = ''
219+ ${ lib . getExe pkgs . removeReferencesTo } -t ${ obelisk . snap-server } "$out/bin/backend"
220+ '' ;
221+ } ) ;
214222 exeFrontend = compressedJs frontend optimizationLevel externjs ;
215223 exeFrontendAssets = mkAssets exeFrontend ;
216224 exeAssets = mkAssets assets ;
You can’t perform that action at this time.
0 commit comments