-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
28 lines (25 loc) · 987 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
sources = {
dimensional = pkgs.fetchFromGitHub {
owner = "bjornbm";
repo = "dimensional";
rev = "8e1aa6ebd23cdd4b515f1ea44a9820f96ec71083";
sha256 = "1g6l128fc5grnivqjll74ppr24jw66yhvi0hbiyp66zpgs9a65bx";
};
};
modifiedHaskellPackages = haskellPackages.override {
overrides = self: super: {
hedgehog = self.callHackage "hedgehog" "0.6" {};
tasty-hedgehog = self.callHackage "tasty-hedgehog" "0.2.0.0" {};
concurrent-output = pkgs.haskell.lib.doJailbreak super.concurrent-output;
dimensional = super.callCabal2nix "dimensional" "${sources.dimensional}" {};
};
};
geodetic-types = modifiedHaskellPackages.callPackage ./geodetic-types.nix {};
in
geodetic-types