summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell.nix4
1 files 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 @@
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
5let 5let
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 {})));
9in pkgs.stdenv.mkDerivation rec { 9in pkgs.stdenv.mkDerivation rec {