-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathrelease.nix
96 lines (82 loc) · 2.82 KB
/
release.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{ compiler ? "ghc928"
, sources ? import ./nix/sources.nix
, pkgs ? import sources.nixpkgs { }
}:
let
doJailbreak = pkgs.haskell.lib.doJailbreak;
needsCocoa = drv:
if pkgs.stdenv.isDarwin
then drv.overrideDerivation (old:
{ buildInputs = [ pkgs.darwin.apple_sdk.frameworks.Cocoa ] ++ old.buildInputs; }
)
else drv;
haskellPackages = pkgs.haskell.packages.${compiler}.override {
overrides = self: super: {
curryer-rpc = self.callHackageDirect {
pkg = "curryer-rpc";
ver = "0.3.7";
sha256 = "sha256-zRp356hxlQtpm2n2lohZxT+O+h6ebmNoxaJeY/Go/cU="; } {};
streamly = self.callHackageDirect {
pkg = "streamly";
ver = "0.10.1";
sha256 = "sha256-9tWZ/8YteD9ljhEmj8oYKIAyFcbQflX0D20j/NTe3qM="; } {};
streamly-core = self.callHackageDirect {
pkg = "streamly-core";
ver = "0.2.2";
sha256 = "sha256-Ggo5ius3dp/TJFfrZSk31A6gSZHA6kLMtxFKe9MIvqQ="; } {};
streamly-bytestring = self.callHackageDirect {
pkg = "streamly-bytestring";
ver = "0.2.2";
sha256 = "sha256-E/sMAvaJ5zGYwb5KAXa2KQo3FqyB+T2mRO6zOTCXpoY="; } {};
lockfree-queue = self.callHackageDirect {
pkg = "lockfree-queue";
ver = "0.2.4";
sha256 = "sha256-h1s/tiBq5Gzl8FtenQacmxJp7zPJPnmZXtKDPvxTSa4="; } {};
unicode-data = self.callHackageDirect {
pkg = "unicode-data";
ver = "0.2.0";
sha256 = "14crb68g79yyw87fgh49z2fn4glqx0zr53v6mapihaxzkikhkkc3";
} {};
winery = self.callHackageDirect {
pkg = "winery";
ver = "1.4";
sha256 = "sha256-ApJg6Qc25UyNZtSN52N9OrUQ/9K4w258oSE5BokO4tE=";
} {};
barbies-th = self.callHackageDirect {
pkg = "barbies-th";
ver = "0.1.11";
sha256 = "sha256-U9mHuHAA0v74dKB2w2kLGx9dBKU6w8CRObtYQF97Gao=";
} {};
scotty = self.callHackageDirect {
pkg = "scotty";
ver = "0.22";
sha256 = "sha256-DY4lKmAmqGTrzKq93Mft9bu9Qc0QcsEVpKzgoWcBL2I=";
} {};
wai = self.callHackageDirect {
pkg = "wai";
ver = "3.2.4";
sha256 = "sha256-NARmVhT5G1eMdtMM1xp7RFpevunThAB4tltCMih+qu8=";
} {};
wai-extra = self.callHackageDirect {
pkg = "wai-extra";
ver = "3.1.14";
sha256 = "sha256-wMI9eTituRbMvYvbcA9pgIwFxkbdL1+2Xw78lghfWaU=";
} {};
project-m36 = ((self.callCabal2nixWithOptions "project-m36" ./. "-f-haskell-scripting" {}));
};
};
in
{
project = haskellPackages.project-m36;
shell = haskellPackages.shellFor {
packages = p: [
p.project-m36
];
buildInputs = [
haskellPackages.ghcid
haskellPackages.hlint
pkgs.docker
];
withHoogle = true;
};
}