Skip to content

Instantly share code, notes, and snippets.

@srhb
Created March 31, 2020 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srhb/c482cc3eec2cd26fa140a17ca5b85b61 to your computer and use it in GitHub Desktop.
Save srhb/c482cc3eec2cd26fa140a17ca5b85b61 to your computer and use it in GitHub Desktop.
let
overlay = self: super: {
haskellPackages = with self.haskell.lib; super.haskellPackages.override (old: {
overrides = self.lib.composeExtensions (old.overrides or (_: _: {})) (hself: hsuper: {
hello = overrideCabal hsuper.hello (olddrv: {
enableExecutableProfiling = true;
});
});
});
};
pkgs = import <nixpkgs> { overlays = [overlay]; config = {}; };
in
pkgs.haskellPackages.hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment