From aed36a51b3942a3050ee8cf45424798f22354d73 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Apr 2016 01:13:26 +0200 Subject: Attempt at turning on profiling failed --- shell.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index b0c7043..c6a98c9 100644 --- a/shell.nix +++ b/shell.nix @@ -1,9 +1,9 @@ { pkgs ? (import {}) -, haskellPackages ? (import ./default.nix { inherit pkgs; }).haskellPackages.override { overrides = self: super: { mkDerivation = args : super.mkDerivation (args // { enableLibraryProfiling = true; }); }; } +, haskellPackages ? (import ./default.nix { inherit pkgs; }).haskellPackages }: let - ghc = haskellPackages.ghcWithPackages (ps: payload ++ depends ++ (with ps; [ hlint cabal2nix cabal-install ])); + ghc = (haskellPackages.ghcWithPackages (ps: (payload ++ depends ++ (with ps; [ hlint cabal2nix cabal-install ])))).override { ignoreCollisions = true; }; payload = builtins.attrValues (import ./default.nix {}); depends = builtins.concatLists (builtins.map (x: if builtins.hasAttr "nativeBuildInputs" x then x.nativeBuildInputs else []) (builtins.attrValues (import ./default.nix {}))); in pkgs.stdenv.mkDerivation rec { -- cgit v1.2.3