Merge pull request #264434 from picnoir/pic/pandoc-reduce-closure-size-haskell-update-branch
pandoc: remove GHC & haskell deps from closure, 5.2G => 250M
This commit is contained in:
commit
ca760999da
@ -24,6 +24,9 @@ in
|
||||
remove-references-to \
|
||||
-t ${haskellPackages.warp} \
|
||||
$out/bin/pandoc
|
||||
remove-references-to \
|
||||
-t ${haskellPackages.pandoc_3_1_8} \
|
||||
$out/bin/pandoc
|
||||
'' + lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) ''
|
||||
mkdir -p $out/share/bash-completion/completions
|
||||
$out/bin/pandoc --bash-completion > $out/share/bash-completion/completions/pandoc
|
||||
@ -36,5 +39,5 @@ in
|
||||
# lead to a transitive runtime dependency on the whole GHC distribution.
|
||||
# This should ideally be fixed in haskellPackages (or even Cabal),
|
||||
# but a minimal pandoc is important enough to patch it manually.
|
||||
disallowedReferences = [ haskellPackages.pandoc-types haskellPackages.warp ];
|
||||
disallowedReferences = [ haskellPackages.pandoc-types haskellPackages.warp haskellPackages.pandoc_3_1_8 ];
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user