mirror of
https://github.com/tweag/distributed-closure.git
synced 2024-11-22 03:06:47 +03:00
31 lines
757 B
Nix
31 lines
757 B
Nix
{ pkgs ? (import ./nix/nixpkgs) }:
|
|
|
|
let
|
|
compiler = "ghc865";
|
|
source = pkgs.lib.sourceByRegex ./. [
|
|
"^.*\.md$"
|
|
"^distributed-closure\.cabal$"
|
|
"^examples.*$"
|
|
"^src.*$"
|
|
"^tests.*$"
|
|
];
|
|
haskellPackages = pkgs.haskell.packages.${compiler}.override {
|
|
overrides = distributedClosureOverlay;
|
|
};
|
|
distributedClosureOverlay = self: super: {
|
|
"distributed-closure" = pkgs.haskell.lib.enableCabalFlag
|
|
(super.callCabal2nix "distributed-closure" source { }) "dev";
|
|
};
|
|
in {
|
|
distributed-closure = haskellPackages.distributed-closure;
|
|
shell = haskellPackages.shellFor {
|
|
packages = ps: [
|
|
ps.distributed-closure
|
|
];
|
|
buildInputs = [
|
|
haskellPackages.cabal-install
|
|
haskellPackages.ghcid
|
|
];
|
|
};
|
|
}
|