about summary refs log tree commit diff
path: root/pkgs/tools/networking/sproxy/default.nix
blob: 10ec9b40cd433a828320290a02f11623ad2982ec (plain) (blame)
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
{ cabal, aeson, attoparsec, caseInsensitive, certificate
, concurrentExtra, conduit, connection, cryptoRandom, curl
, dataDefault, hslogger, hspec, httpConduit, httpKit, httpTypes
, interpolatedstringPerl6, mtl, network, optparseApplicative
, postgresqlSimple, safe, SHA, split, stringConversions, time, tls
, unorderedContainers, utf8String, wai, warp, x509, yaml, fetchurl
}:

cabal.mkDerivation (self: {
  pname = "sproxy";
  version = "0.8.0";
  src = fetchurl {
    url = "https://github.com/zalora/sproxy/archive/0.8.0.tar.gz";
    sha256 = "11xn4k509ck73pacyz2kh0924n2vy8rwakwd42dwbvhhysf47rdx";
  };
  isLibrary = false;
  isExecutable = true;
  patches = [ ./new-http-kit.patch ];
  doCheck = false;
  buildDepends = [
    aeson attoparsec caseInsensitive certificate concurrentExtra
    cryptoRandom curl dataDefault hslogger httpKit httpTypes
    interpolatedstringPerl6 mtl network optparseApplicative
    postgresqlSimple safe SHA split stringConversions time tls
    unorderedContainers utf8String x509 yaml
  ];
  testDepends = [
    aeson attoparsec caseInsensitive certificate concurrentExtra
    conduit connection cryptoRandom curl dataDefault hslogger hspec
    httpConduit httpKit httpTypes interpolatedstringPerl6 mtl network
    optparseApplicative postgresqlSimple safe SHA split
    stringConversions time tls unorderedContainers utf8String wai warp
    x509 yaml
  ];
  meta = {
    license = self.stdenv.lib.licenses.mit;
    platforms = self.ghc.meta.platforms;
  };
})