diff --git a/release.nix b/release.nix index 278c824..9035b55 100644 --- a/release.nix +++ b/release.nix @@ -1,5 +1,18 @@ let - pkgs = import { }; -in - { ga = pkgs.haskellPackages.callPackage ./default.nix { }; - } + config = { + packageOverrides = pkgs: rec { + haskellPackages = pkgs.haskellPackages.override { + overrides = haskellPackagesNew: haskellPackagesOld: rec { + # NOTE to enable profiling in all other libraries (to enable for + # haxcs, add ghc-options) + # mkDerivation = args: super.mkDerivation (args // { + # enableLibraryProfiling = true; + # }); + + ga = haskellPackagesNew.callPackage ./default.nix { }; + }; + }; + }; + }; + pkgs = import { inherit config; }; +in { ga = pkgs.haskellPackages.ga; }