From a702bb6431e97337971d154c9a2b7681764e43d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20P=C3=A4tzel?= Date: Sat, 19 Oct 2019 17:07:45 +0200 Subject: [PATCH] Enhance release.nix format --- release.nix | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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; }