mirror of
https://github.com/srid/rib.git
synced 2024-12-02 00:44:08 +03:00
28 lines
721 B
Nix
28 lines
721 B
Nix
let
|
|
pkgs = import <nixpkgs> { };
|
|
compiler = "default";
|
|
haskellPackages =
|
|
if compiler == "default"
|
|
then pkgs.haskellPackages
|
|
else pkgs.haskell.packages.${compiler};
|
|
in
|
|
haskellPackages.developPackage {
|
|
root = ./.;
|
|
source-overrides = {
|
|
clay = pkgs.fetchFromGitHub {
|
|
owner = "sebastiaanvisser";
|
|
repo = "clay";
|
|
rev = "54dc9eaf0abd180ef9e35d97313062d99a02ee75";
|
|
sha256 = "0y38hyd2gvr7lrbxkrjwg4h0077a54m7gxlvm9s4kk0995z1ncax";
|
|
};
|
|
};
|
|
|
|
overrides = self: super: with pkgs.haskell.lib; {
|
|
clay = dontCheck super.clay;
|
|
};
|
|
|
|
modifier = drv: pkgs.haskell.lib.overrideCabal drv (attrs: {
|
|
buildTools = (attrs.buildTools or []) ++ [haskellPackages.ghcid] ;
|
|
});
|
|
}
|