haskellPackages.ghc-vis: Disable library profiling

`ghc-vis` doesn't support library profiling, as noted in:
> http://felsin9.de/nnis/ghc-vis/#installation

This gets the package building and it runs fine when called from ghci as you
normally would, however when you actually try viewing an expression it fails
with the following error message:
```
ghc: Error running utility program: Unable to call the command  dot  with the
arguments: " -Txdot " because of:  dot: runInteractiveProcess: posix_spawnp:
does not exist (No such file or directory)
```
As far as I can tell that is because `ghc-vis` needs to run dot at runtime but
since it's a library adding `graphviz` as a dependency doesn't quite do the
trick.

And while not ideal adding `graphviz` to the shell you're running `ghc-vis` at
works around this issue.
This commit is contained in:
Deniz Alp 2021-10-20 23:36:35 +03:00
parent 9e02d3ebd6
commit 777dcd7ee3
4 changed files with 3 additions and 3 deletions

View File

@ -49,6 +49,7 @@ self: super: {
# These packages (and their reverse deps) cannot be built with profiling enabled.
ghc-heap-view = disableLibraryProfiling super.ghc-heap-view;
ghc-datasize = disableLibraryProfiling super.ghc-datasize;
ghc-vis = disableLibraryProfiling super.ghc-vis;
# This test keeps being aborted because it runs too quietly for too long
Lazy-Pbkdf2 = if pkgs.stdenv.isi686 then dontCheck super.Lazy-Pbkdf2 else super.Lazy-Pbkdf2;

View File

@ -1655,7 +1655,6 @@ broken-packages:
- ghc-tcplugin-api
- ghc-time-alloc-prof
- ghc-usage
- ghc-vis
- gh-labeler
- giak
- Gifcurry

View File

@ -154,6 +154,7 @@ package-maintainers:
- spago
- termonad
dalpd:
- ghc-vis
- svgcairo
domenkozar:
- cachix

View File

@ -105065,8 +105065,7 @@ self: {
];
description = "Live visualization of data structures in GHCi";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
broken = true;
maintainers = with lib.maintainers; [ dalpd ];
}) {};
"ghcflags" = callPackage