shell.nix 581 Bytes
Newer Older
Wouter Raateland's avatar
Wouter Raateland committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs ? import <nixpkgs> {} }:

let
  haskellPackagesWithProfiling = pkgs.haskellPackages.override {
    overrides = self: super: {
      mkDerivation = args: super.mkDerivation (args // {
        enableLibraryProfiling = false;
      });
    };
  };

  hsEnv = haskellPackagesWithProfiling.ghcWithPackages(p: with p; [
    Cabal cabal-install hlint text containers hspec mtl numeric-limits criterion fgl
    (p.callPackage ../lib/default.nix { })
  ]);

in pkgs.stdenv.mkDerivation {
  name = "sturdy-jimple";
  version = "0.0.1";
  src = ./.;
  buildInputs = [
    hsEnv
  ];
}