aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
blob: 8a896d01ec5a402aa904d9cbe0fdcb62a69e1b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ nixpkgs ? null, compiler ? "ghc865", doBenchmark ? false } :
let
  pinnedPkg = builtins.fetchGit {
    url = https://github.com/nixos/nixpkgs/;
    rev = "93ba4ecd58602d3f69f74f9d45d60a8f949544e2";
  };
  npkgs = if nixpkgs == null
          then import pinnedPkg {}
          else import nixpkgs {};
  variant = if doBenchmark then npkgs.pkgs.haskell.lib.doBenchmark else npkgs.pkgs.lib.id;
  verismith = npkgs.pkgs.haskellPackages.callCabal2nix "verismith" (./.) {};
in
variant verismith