gitit: fix build with plugin support
Since it incurs a GHC reference anyways, we have to disable justStaticExecutables!
This commit is contained in:
parent
59b26ed060
commit
2810884b1f
@ -1,4 +1,4 @@
|
|||||||
{ lib, haskellPackages, haskell, removeReferencesTo
|
{ lib, haskellPackages, haskell
|
||||||
# “Plugins” are a fancy way of saying gitit will invoke
|
# “Plugins” are a fancy way of saying gitit will invoke
|
||||||
# GHC at *runtime*, which in turn makes it pull GHC
|
# GHC at *runtime*, which in turn makes it pull GHC
|
||||||
# into its runtime closure. Only enable if you really need
|
# into its runtime closure. Only enable if you really need
|
||||||
@ -7,16 +7,18 @@
|
|||||||
, pluginSupport ? false
|
, pluginSupport ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# this is similar to what we do with the pandoc executable
|
|
||||||
|
|
||||||
let
|
let
|
||||||
plain = haskellPackages.gitit;
|
inherit (haskell.lib.compose)
|
||||||
plugins =
|
enableCabalFlag
|
||||||
if pluginSupport
|
disableCabalFlag
|
||||||
then plain
|
justStaticExecutables
|
||||||
else haskell.lib.compose.disableCabalFlag "plugins" plain;
|
;
|
||||||
static = haskell.lib.compose.justStaticExecutables plugins;
|
|
||||||
|
|
||||||
|
base = (if pluginSupport then enableCabalFlag else disableCabalFlag)
|
||||||
|
"plugins"
|
||||||
|
haskellPackages.gitit;
|
||||||
in
|
in
|
||||||
|
|
||||||
static
|
if pluginSupport
|
||||||
|
then base
|
||||||
|
else justStaticExecutables base
|
||||||
|
Loading…
Reference in New Issue
Block a user