diff --git a/pkgs/development/tools/haskell/ghc-gc-tune/default.nix b/pkgs/development/tools/haskell/ghc-gc-tune/default.nix new file mode 100644 index 000000000000..193d12fdefa4 --- /dev/null +++ b/pkgs/development/tools/haskell/ghc-gc-tune/default.nix @@ -0,0 +1,16 @@ +{ cabal, filepath }: + +cabal.mkDerivation (self: { + pname = "ghc-gc-tune"; + version = "0.3"; + sha256 = "0ghp3f86m91zi6kl8zq157717s2p73nwdgln4aiclq830m72ys9w"; + isLibrary = false; + isExecutable = true; + buildDepends = [ filepath ]; + meta = { + homepage = "http://code.haskell.org/~dons/code/ghc-gc-tune"; + description = "Graph performance of Haskell programs with different GC flags"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 05a459fb1613..d6b0bb9fbd27 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1178,6 +1178,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x ghcEventsAnalyze = callPackage ../development/tools/haskell/ghc-events-analyze {}; + ghcGcTune = callPackage ../development/tools/haskell/ghc-gc-tune {}; + ghcHeapView = callPackage ../development/libraries/haskell/ghc-heap-view { cabal = self.cabal.override { enableLibraryProfiling = false; }; # pkg cannot be built with profiling enabled };