-
Notifications
You must be signed in to change notification settings - Fork 256
Open
Description
One would think it rather obvious from the documentation, but I can't figure out for the life of me how to enable profiling and the other module options.
I have my cabal configured to --enable-Profiling and --enable-Library-Profiling.
shell.option doesn't work
And when building, ghc keeps complaining about the libraries for hashable not having been built with profiling.
My flake outputs look something like this
outputs = { self, nixpkgs, flake-utils, haskellNix }:
let supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; in
flake-utils.lib.eachSystem supportedSystems (system:
let
overlays = [
haskellNix.overlay
(final: prev: {
funcman = let inherit (pkgs) lib; in
final.haskell-nix.project' {
src = ./project/.;
compiler-nix-name = "ghc984";
shell.tools = { };
# shell.enableDWARF = true;
shell.buildInputs = (with pkgs; [
]);
shell.shellHook = ''
'';
};
})
];
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
flake = pkgs.project.flake {};
in flake // {
legacyPackages = pkgs;
packages = flake.packages // { default = flake.packages."project:exe:project";};
});Metadata
Metadata
Assignees
Labels
No labels