2019-08-03 19:40:45 +03:00
|
|
|
{ pkgs ? import <nixpkgs> {}
|
|
|
|
, compiler ? "default"
|
|
|
|
, root ? ./.
|
|
|
|
, source-overrides ? {}
|
|
|
|
, ...
|
|
|
|
}:
|
2019-07-11 20:58:46 +03:00
|
|
|
let
|
|
|
|
haskellPackages =
|
|
|
|
if compiler == "default"
|
|
|
|
then pkgs.haskellPackages
|
|
|
|
else pkgs.haskell.packages.${compiler};
|
|
|
|
in
|
|
|
|
haskellPackages.developPackage {
|
2019-08-03 19:40:45 +03:00
|
|
|
root = root;
|
2019-07-11 20:58:46 +03:00
|
|
|
source-overrides = {
|
|
|
|
clay = pkgs.fetchFromGitHub {
|
|
|
|
owner = "sebastiaanvisser";
|
|
|
|
repo = "clay";
|
|
|
|
rev = "54dc9eaf0abd180ef9e35d97313062d99a02ee75";
|
|
|
|
sha256 = "0y38hyd2gvr7lrbxkrjwg4h0077a54m7gxlvm9s4kk0995z1ncax";
|
|
|
|
};
|
2019-07-19 23:42:18 +03:00
|
|
|
pandoc-include-code = pkgs.fetchFromGitHub {
|
|
|
|
owner = "owickstrom";
|
|
|
|
repo = "pandoc-include-code";
|
|
|
|
rev = "7e4d9d967ff3e3855a7eae48408c43b3400ae6f4";
|
|
|
|
sha256 = "0wvml63hkhgmmkdd2ml5a3g7cb69hxwdsjmdhdzjbqbrwkmc20rd";
|
|
|
|
};
|
2019-08-03 19:40:45 +03:00
|
|
|
rib = ./.;
|
|
|
|
} // source-overrides;
|
2019-06-28 17:06:58 +03:00
|
|
|
|
2019-07-11 20:58:46 +03:00
|
|
|
overrides = self: super: with pkgs.haskell.lib; {
|
|
|
|
clay = dontCheck super.clay;
|
2019-06-28 17:06:58 +03:00
|
|
|
};
|
2019-07-16 01:27:04 +03:00
|
|
|
|
|
|
|
modifier = drv: pkgs.haskell.lib.overrideCabal drv (attrs: {
|
|
|
|
buildTools = (attrs.buildTools or []) ++ [haskellPackages.ghcid] ;
|
|
|
|
});
|
2019-07-11 20:58:46 +03:00
|
|
|
}
|