chore(xan): Install ghc-prof-flamegraph

Some things are slow, and it's time to profile them

Change-Id: I6a915db8bcc85adc7c3902a407cebb5a6f52d514
Reviewed-on: https://cl.tvl.fyi/c/depot/+/553
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Griffin Smith 2020-06-21 18:01:29 -04:00 committed by glittershark
parent 68779da596
commit aab362ef37
2 changed files with 21 additions and 3 deletions

View file

@ -20,8 +20,7 @@ in self: super: with pkgs.haskell.lib; rec {
sha256 = "12k41wd9fd1y3jd5djwcpwg2s1cva87wh14i0m1yn49zax9wl740";
} {};
vinyl = pkgs.haskell.lib.overrideSrc
(pkgs.haskell.lib.markUnbroken super.vinyl)
vinyl = overrideSrc (markUnbroken super.vinyl)
rec {
src = nixpkgs.fetchzip {
url = "mirror://hackage/vinyl-${version}/vinyl-${version}.tar.gz";
@ -32,4 +31,20 @@ in self: super: with pkgs.haskell.lib; rec {
comonad-extras = appendPatch (markUnbroken super.comonad-extras)
[ ./build/update-comonad-extras.patch ];
ghc-prof-flamegraph = overrideCabal super.ghc-prof-flamegraph (oldAttrs: rec {
version = "0.2.0.0";
src = nixpkgs.fetchFromGitHub {
owner = "fpco";
repo = "ghc-prof-flamegraph";
rev = "8edd3b4806adeb25a4d55bed51c3afcc8e7a8e14";
sha256 = "1i05pw495y5n24s1313iip8njn1lkf22a89izvi19iw7qkx062hr";
fetchSubmodules = true;
};
libraryHaskellDepends = oldAttrs.libraryHaskellDepends ++ [
self.optparse-applicative
];
});
}

View file

@ -27,4 +27,7 @@ let
inherit (pkgs.haskell.lib) addBuildTools;
in
(addBuildTools drv (with haskellPackages; [ cabal-install ])).env
(addBuildTools drv (with haskellPackages; [
cabal-install
ghc-prof-flamegraph
])).env