File tree 3 files changed +78
-0
lines changed
3 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 18
18
ocamlPackages = super . ocamlPackages . overrideScope' ( self : super : {
19
19
semver = self . callPackage ./ocaml-modules/semver { } ;
20
20
obus = self . callPackage ./ocaml-modules/obus { } ;
21
+ opium = self . callPackage ./ocaml-modules/opium { } ;
22
+ opium_kernel = self . callPackage ./ocaml-modules/opium_kernel { } ;
21
23
} ) ;
22
24
23
25
} ;
Original file line number Diff line number Diff line change
1
+ { buildDunePackage
2
+
3
+ , ppx_sexp_conv
4
+ , ppx_fields_conv
5
+
6
+ , cmdliner
7
+ , cohttp-lwt-unix
8
+ , logs
9
+ , magic-mime
10
+ , opium_kernel
11
+ , stringext
12
+
13
+ , alcotest
14
+ } :
15
+
16
+ buildDunePackage {
17
+ pname = "opium" ;
18
+ inherit ( opium_kernel ) version src meta minimumOCamlVersion ;
19
+
20
+ useDune2 = true ;
21
+
22
+ doCheck = true ;
23
+
24
+ buildInputs = [
25
+ ppx_sexp_conv ppx_fields_conv
26
+ alcotest
27
+ ] ;
28
+
29
+ propagatedBuildInputs = [
30
+ opium_kernel cmdliner cohttp-lwt-unix magic-mime logs stringext
31
+ ] ;
32
+ }
Original file line number Diff line number Diff line change
1
+ { lib
2
+ , buildDunePackage
3
+ , fetchurl
4
+
5
+ , ppx_fields_conv
6
+ , ppx_sexp_conv
7
+
8
+ , cohttp-lwt
9
+ , ezjsonm
10
+ , hmap
11
+ , sexplib
12
+ , fieldslib
13
+ } :
14
+
15
+ buildDunePackage rec {
16
+ pname = "opium_kernel" ;
17
+ version = "0.18.0" ;
18
+
19
+ useDune2 = true ;
20
+
21
+ minimumOCamlVersion = "4.04.1" ;
22
+
23
+ src = fetchurl {
24
+ url = "https://github.com/rgrinberg/opium/releases/download/${ version } /opium-${ version } .tbz" ;
25
+ sha256 = "0a2y9gw55psqhqli3a5ps9mfdab8r46fnbj882r2sp366sfcy37q" ;
26
+ } ;
27
+
28
+ doCheck = true ;
29
+
30
+ buildInputs = [
31
+ ppx_sexp_conv ppx_fields_conv
32
+ ] ;
33
+
34
+ propagatedBuildInputs = [
35
+ hmap cohttp-lwt ezjsonm sexplib fieldslib
36
+ ] ;
37
+
38
+ meta = {
39
+ description = "Sinatra like web toolkit for OCaml based on cohttp & lwt" ;
40
+ homepage = "https://github.com/rgrinberg/opium" ;
41
+ license = lib . licenses . mit ;
42
+ maintainers = [ lib . maintainers . pmahoney ] ;
43
+ } ;
44
+ }
You can’t perform that action at this time.
0 commit comments