about summary refs log tree commit diff
path: root/users/glittershark/xanthous
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/xanthous')
-rw-r--r--users/glittershark/xanthous/haskell-overlay.nix19
-rw-r--r--users/glittershark/xanthous/shell.nix5
2 files changed, 21 insertions, 3 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
+    ];
+  });
 }
diff --git a/users/glittershark/xanthous/shell.nix b/users/glittershark/xanthous/shell.nix
index edd2fe4c08d6..48149664272d 100644
--- a/users/glittershark/xanthous/shell.nix
+++ b/users/glittershark/xanthous/shell.nix
@@ -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