forked from digitallyinduced/ihp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ihp.nix
109 lines (108 loc) · 1.73 KB
/
ihp.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
{ mkDerivation
, callPackage
, fetchFromGitHub
, stdenv
, cabal-install
, base
, classy-prelude
, directory
, string-conversions
, warp
, wai
, mtl
, blaze-markup
, wai-extra
, http-types
, blaze-html
, inflections
, text
, postgresql-simple
, wai-middleware-static
, wai-util
, aeson
, uuid
, wai-session
, wai-session-clientsession
, clientsession
, pwstore-fast
, template-haskell
, haskell-src-meta
, random-strings
, interpolate
, uri-encode
, websockets
, wai-websockets
, mime-mail
, mime-mail-ses
, attoparsec
, case-insensitive
, http-media
, cookie
, process
, newtype-generics
, unix
, fsnotify
, countable-inflections
, typerep-map
, basic-prelude
, data-default
, regex-tdfa
}:
mkDerivation {
pname = "ihp";
version = "1.0.28";
src = (import <nixpkgs> {}).nix-gitignore.gitignoreSource [] ./.;
isLibrary = true;
isExecutable = true;
allowInconsistentDependencies = true;
libraryHaskellDepends = [
base
classy-prelude
directory
string-conversions
warp
wai
mtl
blaze-html
blaze-markup
wai-extra
http-types
inflections
text
postgresql-simple
wai-middleware-static
wai-util
aeson
uuid
wai-session
wai-session-clientsession
clientsession
pwstore-fast
template-haskell
haskell-src-meta
random-strings
interpolate
websockets
wai-websockets
mime-mail
attoparsec
case-insensitive
http-media
cookie
process
newtype-generics
unix
fsnotify
countable-inflections
typerep-map
basic-prelude
data-default
regex-tdfa
];
license = stdenv.lib.licenses.mit;
postInstall = ''
cp exe/IHP/CLI/run-script $out/bin/run-script
mkdir -p $out/lib/IHP
cp -r lib/IHP/* $out/lib/IHP
'';
}