2020-06-08 11:07:30 +00:00
|
|
|
|
{ lib, haskellPackages, haskell, removeReferencesTo
|
|
|
|
|
# “Plugins” are a fancy way of saying gitit will invoke
|
|
|
|
|
# GHC at *runtime*, which in turn makes it pull GHC
|
|
|
|
|
# into its runtime closure. Only enable if you really need
|
|
|
|
|
# that feature. But if you do you’ll want to use gitit
|
|
|
|
|
# as a library anyway.
|
|
|
|
|
, pluginSupport ? false
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
# this is similar to what we do with the pandoc executable
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
plain = haskellPackages.gitit;
|
|
|
|
|
plugins =
|
|
|
|
|
if pluginSupport
|
|
|
|
|
then plain
|
2021-10-26 10:20:34 +00:00
|
|
|
|
else haskell.lib.compose.disableCabalFlag "plugins" plain;
|
|
|
|
|
static = haskell.lib.compose.justStaticExecutables plugins;
|
2020-06-08 11:07:30 +00:00
|
|
|
|
|
|
|
|
|
in
|
2024-06-06 09:52:07 +00:00
|
|
|
|
|
|
|
|
|
static
|