-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
197 lines (173 loc) · 7.55 KB
/
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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{ system ? builtins.currentSystem
}:
let
pkgs = import (builtins.fetchGit {
name = "nixos-unstable-2023-02-26";
url = "https://github.com/nixos/nixpkgs/";
ref = "refs/heads/nixos-unstable";
rev = "7f5639fa3b68054ca0b062866dc62b22c3f11505";
}) {};
obelisk = (import ./.obelisk/impl {
inherit system;
iosSdkVersion = "13.2";
terms.security.acme.acceptTerms = true;
# useGHC810 = true;
});
# persistent 2.14.0.5
persistent-src = pkgs.fetchFromGitHub {
owner = "yesodweb";
repo = "persistent";
rev = "434f49266749cad6f074920fb61ad3ec6ef90bea";
sha256 = "1h1hflfddr0k1ir4q2yf2a6wh9ix3qjqpbx3356117n59h6jf8f6";
};
in
with pkgs.haskell.lib;
obelisk.project ./. ({ ... }: {
# android.applicationId = "systems.obsidian.obelisk.examples.minimal";
# android.displayName = "Palantype";
# ios.bundleIdentifier = "systems.obsidian.obelisk.examples.minimal";
# ios.bundleName = "Palantype";
staticFiles = import ./static { inherit pkgs; };
shellToolOverrides = self: super: {
inherit (pkgs.haskellPackages) cabal-plan cabal-install;
};
overrides = self: super: {
mkDerivation = args: super.mkDerivation (args // {
doCheck = false;
doHaddock = false;
enableLibraryProfiling = false;
});
# for persistent
lift-type = self.callHackage "lift-type" "0.1.0.1" {};
# esqueleto's test suite introduces dependencies to persistent-... packages
esqueleto = self.callHackage "esqueleto" "3.5.8.0" {};
#persistent = self.callHackage "persistent" "2.13.3.5" {};
persistent = self.callCabal2nix "persistent" "${persistent-src}/persistent" {};
persistent-mysql = self.callCabal2nix "persistent-mysql" "${persistent-src}/persistent-mysql" {};
mysql = self.callHackage "mysql" "0.2.1" {};
mysql-simple = self.callHackage "mysql-simple" "0.4.9" {};
# the version 2.13.0.2 still got a bug with mariadb
#persistent-mysql = self.callHackage "persistent-mysql" "2.13.0.2" {};
#persistent-mysql = self.callHackageDirect {
# pkg = "persistent-mysql";
# ver = "2.13.0.3";
# sha256 = "0mnrgq05nk7ghfavfr2rhcz2yc0lciw88idri0ljsk2nymsnrbb8";
#} {};
gerippe = self.callCabal2nix "gerippe" (pkgs.fetchFromGitHub {
owner = "rubenmoor";
repo = "gerippe";
rev = "a25ccf56afe17ae5870955dbe5b968325dea8e24";
sha256 = "1ny1kacfd4vx0sbkxzlrz6ixkwxlinmfm5k3x184a0m5si5qb7n7";
}) {};
#gerippe = self.callCabal2nix "gerippe" ../../gerippe {};
gridtables = self.callHackageDirect {
pkg = "gridtables";
ver = "0.1.0.0";
sha256 = "zMQW1jbntZ1pxWKT+D+tt/LKy7SkADFN3o+Wn3VdD88=";
} {};
jira-wiki-markup = self.callHackageDirect {
pkg = "jira-wiki-markup";
ver = "1.5.0";
sha256 = "a0/b2AfcA7mMmfrcbEEh5pNUq/OjJw4H7uLTpkl+Y1c=";
} {};
#pandoc-types = self.callCabal2nix "pandoc-types" ../pandoc-types {};
pandoc-types = self.callHackageDirect {
pkg = "pandoc-types";
ver = "1.23";
sha256 = "BfwTC6irH6/dYIuqd+rMqLNzH8DP1g/7mFJhZZ9O9Fo=";
} {};
commonmark-pandoc = self.callHackageDirect {
pkg = "commonmark-pandoc";
ver = "0.2.1.3";
sha256 = "0JXjvqZVFa8RR64Wi9NZ97tQ9S900qRaE6/4adQaQaU=";
} {};
commonmark = self.callHackage "commonmark" "0.2.2" {};
commonmark-extensions = self.callHackageDirect {
pkg = "commonmark-extensions";
ver = "0.2.3.3";
sha256 = "J0sdUT4X0yjJ4iAu/ne7EA4IzFAoyBWf59hx5FyOsH4=";
} {};
unicode-data = self.callHackageDirect {
pkg = "unicode-data";
ver = "0.3.1";
sha256 = "p3uoLleamcIYEqe9c+EFRO3mPMZGgLf9XQ3/qwdmiF8=";
} {};
texmath = self.callHackageDirect {
pkg = "texmath";
ver = "0.12.6";
sha256 = "r5R3TfWOYfgMH4JDXMX14JPykGjKXuJn6IovJ4rSnTo=";
} {};
citeproc = self.callHackageDirect {
pkg = "citeproc";
ver = "0.8.1";
sha256 = "XhaAQo0kYCZzenyUftgiCqNs/5esca2udcfeSpBOTjI=";
} {};
doclayout = self.callHackage "doclayout" "0.4" {};
emojis = self.callHackage "emojis" "0.1.2" {};
doctemplates = self.callHackageDirect {
pkg = "doctemplates";
ver = "0.11";
sha256 = "8xT3CJzWjhLEHTBcbl+BCF0lc5fVQUQ0IRdLMNmthmc=";
} {};
ipynb = self.callHackage "ipynb" "0.2" {};
mime-types = self.callHackageDirect {
pkg = "mime-types";
ver = "0.1.1.0";
sha256 = "HnBsPBdONbaw42/JnpONXAIwsEwc/fMyUXcm4cJdWUQ=";
} {};
pandoc = self.callCabal2nix "pandoc" (pkgs.fetchFromGitHub {
owner = "rubenmoor";
repo = "pandoc";
rev = "8fa46a2e5701db1ed579cc65378a927746ca8586";
sha256 = "0vl1ikgg80rkwdz6chj2s2h5xdkylvi4ymcziq3v0s62pnqf8bk3";
}) {};
skylighting-core = self.callHackage "skylighting-core" "0.9" {};
skylighting = self.callHackage "skylighting" "0.9" {};
#reflex-dom-pandoc = self.callCabal2nix "reflex-dom-pandoc" ../reflex-dom-pandoc {};
# waiting for my pull request to make it into upstream
reflex-dom-pandoc = self.callCabal2nix "reflex-dom-pandoc" (pkgs.fetchFromGitHub {
owner = "rubenmoor";
repo = "reflex-dom-pandoc";
rev = "050388e68dbae52043e0d633f854eb98257fc223";
sha256 = "sha256-6UViAujrl7odTPvnseIx+x+/9HBhoKFbeM8Yo2P3iwQ=";
}) {};
#servant-reflex = self.callCabal2nix "servant-reflex" ../servant-reflex {};
servant-reflex = self.callCabal2nix "servant-reflex" (pkgs.fetchFromGitHub {
owner = "rubenmoor";
repo = "servant-reflex";
rev = "ba50e31bc75cd3247c6b711aee998bbf4150f221";
sha256 = "1aq621li77xjh59w0za16971ilkdll5z8m124lh19hxi8jyqym4d";
}) {};
#servant-snap = self.callCabal2nix "servant-snap" ../servant-snap {};
servant-snap = self.callCabal2nix "servant-snap" (pkgs.fetchFromGitHub {
owner = "rubenmoor";
repo = "servant-snap";
rev = "4850305bd586e887229954ad9dfccb649c497f8e";
sha256 = "1ins0j4vd3cmf2dgh601b4wjqky79myz1245v2b59m5zsp11am01";
}) {};
#my-palantype = self.callCabal2nix "my-palantype" ../my-palantype { };
my-palantype = self.callCabal2nix "my-palantype" (pkgs.fetchFromGitHub {
owner = "rubenmoor";
repo = "my-palantype";
rev = "a046de6e676173f520b10a430a4661aa5a042e90";
sha256 = "1sinsh4synsx9fa2hyfqx4pgqv8gqll499z3ya9hs7xzbca9hphj";
}) {};
bytestring-trie = self.callHackage "bytestring-trie" "0.2.7" {};
# dunno why, if not explicitly specified trying and failing with 1.1.1
lens-aeson = self.callHackage "lens-aeson" "1.2.2" {};
# jose 0.9 causes weird error where text-short can't be found
jose = self.callHackage "jose" "0.10" {};
lens = self.callHackage "lens" "5.1.1" {};
servant = self.callHackage "servant" "0.19.1" {};
base64-bytestring = self.callHackage "base64-bytestring" "1.2.1.0" {};
# hackage says jose < 0.11; but cabal complains -- probably have to
# switch to the github repo servant/servant-auth/servant-auth,
# even though the version number is the same;
# or wait until github-version becomes available on hackage
servant-auth = doJailbreak(self.callHackage "servant-auth" "0.4.1.0" {});
# jsaddle-dom doesn't have a version that supports lens 5.*
jsaddle-dom = doJailbreak(self.callHackage "jsaddle-dom" "0.9.5.0" {});
# reflex-dom-core doesn't support lens > 5.1
reflex-dom-core = doJailbreak(super.reflex-dom-core);
};
})