This repository has been archived by the owner on May 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
servant-photo-gallery.nix
49 lines (49 loc) · 2.19 KB
/
servant-photo-gallery.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
{ mkDerivation, aeson, base, brittany, bytestring, containers
, cryptonite, directory, filepath, hedgehog, hedgehog-corpus, hlint
, hpack, htoml, http-api-data, http-client, http-media, http-types
, jose, JuicyPixels, lens, mmorph, monad-logger, mtl, network-uri
, servant, servant-auth, servant-auth-client, servant-auth-server
, servant-client, servant-multipart, servant-server, sqlite-simple
, stdenv, template-haskell, text, time, unordered-containers, uuid
, wai, wai-cors, warp, weeder, python3
}:
let
cleanSource' = with stdenv.lib; builtins.filterSource (p: t: cleanSourceFilter p t && baseNameOf p != ".stack-work");
in
mkDerivation {
pname = "servant-photo-gallery";
version = "0.1.0.0";
src = cleanSource' ./.;
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson base bytestring cryptonite directory filepath htoml
http-api-data http-media http-types jose JuicyPixels lens
monad-logger mtl network-uri servant servant-auth
servant-auth-server servant-multipart servant-server sqlite-simple
text time unordered-containers uuid wai wai-cors warp
];
libraryToolDepends = [ brittany hlint hpack weeder ];
executableHaskellDepends = [
aeson base bytestring cryptonite directory filepath htoml
http-api-data http-media http-types jose JuicyPixels lens
monad-logger mtl network-uri servant servant-auth
servant-auth-server servant-multipart servant-server sqlite-simple
text time unordered-containers uuid wai wai-cors warp
];
executableToolDepends = [ brittany hlint weeder ];
testHaskellDepends = [
aeson base bytestring containers cryptonite directory filepath
hedgehog hedgehog-corpus htoml http-api-data http-client http-media
http-types jose JuicyPixels lens mmorph monad-logger mtl
network-uri servant servant-auth servant-auth-client
servant-auth-server servant-client servant-multipart servant-server
sqlite-simple template-haskell text time unordered-containers uuid
wai wai-cors warp
];
testToolDepends = [ brittany hlint weeder ];
prePatch = "hpack";
homepage = "https://github.com/rogryza/servant-photo-gallery#readme";
description = "Photo gallery API server";
license = stdenv.lib.licenses.mit;
}