diff options
| author | Félix Baylac Jacqué <felix@alternativebit.fr> | 2023-10-30 20:08:02 +0100 |
|---|---|---|
| committer | Félix Baylac Jacqué <felix@alternativebit.fr> | 2023-10-30 21:04:57 +0100 |
| commit | 27dfebc7f80c2c4fc798a5771b629f679bff3810 (patch) | |
| tree | c7d951788ecdac42b68f141b3f7276a968b62885 /pkgs/development/python-modules/python-openstackclient | |
| parent | b666d2178c64589bffaf78f8b273f5ad12eada80 (diff) | |
pandoc: remove GHC & haskell deps from closure, 5.2G => 250M
The Haskell dependencies were leaking through a haskellPackages.pandoc
stray references:
$ strings ./result/bin/pandoc | grep /nix/store
(...)
/nix/store/xk2acjd6587wyskg85xg54lj89mrvrv0-pandoc-3.1.8/etc
/nix/store/xk2acjd6587wyskg85xg54lj89mrvrv0-pandoc-3.1.8/libexec/x86_64-linux-ghc-9.4.7/pandoc-3.1.8
/nix/store/l9mzh2nlq5qs50yfvb3ymphfpas0j7pd-pandoc-3.1.8-data/share/ghc-9.4.7/x86_64-linux-ghc-9.4.7/pandoc-3.1.8
/nix/store/xk2acjd6587wyskg85xg54lj89mrvrv0-pandoc-3.1.8/lib/ghc-9.4.7/x86_64-linux-ghc-9.4.7
/nix/store/xk2acjd6587wyskg85xg54lj89mrvrv0-pandoc-3.1.8/lib/ghc-9.4.7/x86_64-linux-ghc-9.4.7/pandoc-3.1.8-DUwbvTsa4nj3Hikhs5AQGF
/nix/store/xk2acjd6587wyskg85xg54lj89mrvrv0-pandoc-3.1.8/bin
Removing these references using "remove-reference-to".
Before:
$ nix path-info --closure-size -h $(nix-build -A pandoc)
/nix/store/np2f5g1x25fgkp6q10n5p14352899km7-pandoc-cli-0.1.1.1 5.2G
After:
$ nix path-info --closure-size -h $(nix-build -A pandoc)
/nix/store/fpl2h3qs6vm0vb5cibb7cswzm90hc4yx-pandoc-cli-0.1.1.1 250.5M
Fixes https://github.com/NixOS/nixpkgs/issues/264399
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient')
0 files changed, 0 insertions, 0 deletions
