diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-06-21T22·01-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-06-22T00·40+0000 |
commit | aab362ef3754832e405093458747839fd9a06f6e (patch) | |
tree | 5fa7504774c0e71899bdd84ce54a6b64193ffdf5 /users/glittershark/xanthous/haskell-overlay.nix | |
parent | 68779da59612dc467425a63f78fb34f5e53af8e0 (diff) |
chore(xan): Install ghc-prof-flamegraph r/1057
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>
Diffstat (limited to 'users/glittershark/xanthous/haskell-overlay.nix')
-rw-r--r-- | users/glittershark/xanthous/haskell-overlay.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/users/glittershark/xanthous/haskell-overlay.nix b/users/glittershark/xanthous/haskell-overlay.nix index fff1c2174179..ad1200ef77f7 100644 --- a/users/glittershark/xanthous/haskell-overlay.nix +++ b/users/glittershark/xanthous/haskell-overlay.nix @@ -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 + ]; + }); } |