Skip to content

Commit

Permalink
shell.nix: optional profiling
Browse files Browse the repository at this point in the history
Run with `nix-shell -A env --arg profiling true` to enable profiling.
  • Loading branch information
ttuegel committed Apr 5, 2016
1 parent c77576f commit 201f59f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 0 additions & 10 deletions shell-profiling.nix

This file was deleted.

10 changes: 9 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
with (import <nixpkgs> {});
{ nixpkgs ? import <nixpkgs> {}, profiling ? false }:

with nixpkgs;

let
inherit (pkgs.haskell) lib;
haskellPackages = pkgs.haskell.packages.ghc7103.override {
overrides = self: super: {

mkDerivation = args: super.mkDerivation (args // {
enableLibraryProfiling = profiling;
});

aeson = self.aeson_0_11_1_4;
bifunctors = lib.dontHaddock self.bifunctors_5_2_1;
comonad = lib.doJailbreak (lib.dontCheck super.comonad);
Expand Down

0 comments on commit 201f59f

Please sign in to comment.