mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Export ghci config files for ghc-vis and ghc-heap-view
This commit is contained in:
parent
185439ca5f
commit
de35a6dbb9
3 changed files with 13 additions and 0 deletions
|
@ -76,6 +76,11 @@ stdenv.mkDerivation rec {
|
|||
ln -s $f $out/share/emacs/site-lisp/
|
||||
echo -n .
|
||||
done
|
||||
for f in "$currentPath/share/ghci/"*; do
|
||||
mkdir -p $out/share/ghci
|
||||
ln -s $f $out/share/ghci/
|
||||
echo -n .
|
||||
done
|
||||
for f in "$currentPkgDir/"*.conf; do
|
||||
ln -s $f $linkedPkgDir
|
||||
echo -n .
|
||||
|
|
|
@ -5,6 +5,10 @@ cabal.mkDerivation (self: {
|
|||
version = "0.5.1";
|
||||
sha256 = "1qi7f3phj2j63x1wd2cvk36945cxd84s12zs03hlrn49wzx2pf1n";
|
||||
buildDepends = [ binary transformers ];
|
||||
postInstall = ''
|
||||
ensureDir "$out/share/ghci"
|
||||
ln -s "$out/share/$pname-$version/ghci" "$out/share/ghci/$pname"
|
||||
'';
|
||||
meta = {
|
||||
description = "Extract the heap representation of Haskell values and thunks";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
|
|
|
@ -10,6 +10,10 @@ cabal.mkDerivation (self: {
|
|||
cairo deepseq fgl ghcHeapView graphviz gtk mtl svgcairo text
|
||||
transformers xdot
|
||||
];
|
||||
postInstall = ''
|
||||
ensureDir "$out/share/ghci"
|
||||
ln -s "$out/share/$pname-$version/ghci" "$out/share/ghci/$pname"
|
||||
'';
|
||||
meta = {
|
||||
homepage = "http://felsin9.de/nnis/ghc-vis";
|
||||
description = "Live visualization of data structures in GHCi";
|
||||
|
|
Loading…
Reference in a new issue