diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-17 01:13:26 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-17 01:13:26 +0200 |
commit | aed36a51b3942a3050ee8cf45424798f22354d73 (patch) | |
tree | 7ca66debe69c32e9726959942b9f3dd9c8c76df5 | |
parent | a4645fa4bfe346dca048c946b8a2122ddcb6bf57 (diff) | |
download | events-aed36a51b3942a3050ee8cf45424798f22354d73.tar events-aed36a51b3942a3050ee8cf45424798f22354d73.tar.gz events-aed36a51b3942a3050ee8cf45424798f22354d73.tar.bz2 events-aed36a51b3942a3050ee8cf45424798f22354d73.tar.xz events-aed36a51b3942a3050ee8cf45424798f22354d73.zip |
Attempt at turning on profiling failed
-rw-r--r-- | shell.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,9 +1,9 @@ | |||
1 | { pkgs ? (import <nixpkgs> {}) | 1 | { pkgs ? (import <nixpkgs> {}) |
2 | , haskellPackages ? (import ./default.nix { inherit pkgs; }).haskellPackages.override { overrides = self: super: { mkDerivation = args : super.mkDerivation (args // { enableLibraryProfiling = true; }); }; } | 2 | , haskellPackages ? (import ./default.nix { inherit pkgs; }).haskellPackages |
3 | }: | 3 | }: |
4 | 4 | ||
5 | let | 5 | let |
6 | ghc = haskellPackages.ghcWithPackages (ps: payload ++ depends ++ (with ps; [ hlint cabal2nix cabal-install ])); | 6 | ghc = (haskellPackages.ghcWithPackages (ps: (payload ++ depends ++ (with ps; [ hlint cabal2nix cabal-install ])))).override { ignoreCollisions = true; }; |
7 | payload = builtins.attrValues (import ./default.nix {}); | 7 | payload = builtins.attrValues (import ./default.nix {}); |
8 | depends = builtins.concatLists (builtins.map (x: if builtins.hasAttr "nativeBuildInputs" x then x.nativeBuildInputs else []) (builtins.attrValues (import ./default.nix {}))); | 8 | depends = builtins.concatLists (builtins.map (x: if builtins.hasAttr "nativeBuildInputs" x then x.nativeBuildInputs else []) (builtins.attrValues (import ./default.nix {}))); |
9 | in pkgs.stdenv.mkDerivation rec { | 9 | in pkgs.stdenv.mkDerivation rec { |