summaryrefslogtreecommitdiff
path: root/default.nix
blob: d3604c3e01ae965ccb11629801deb3495eff9e68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let
  pkgs = import <nixpkgs> {};
  overrideCabal = drv: f: (drv.override (args: args // {
    mkDerivation = drv: args.mkDerivation (drv // f drv);
  })) // {
    overrideScope = scope: overrideCabal (drv.overrideScope scope) f;
  };
  dontCheck = drv: overrideCabal drv (drv: { doCheck = false; });
in rec {
  beuteltier = pkgs.stdenv.lib.overrideDerivation (
    (pkgs.haskellngPackages.callPackage ./blog.nix {}).override (attrs: attrs // {
      hakyll = dontCheck pkgs.haskellngPackages.hakyll;
    })
    ) (attrs : {
	    src = ./.;
	  }
  );
}