tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.ppx_blob: 0.2 -> 0.4.0
Vincent Laporte
7 years ago
acd100e4
df6534d0
+18
-7
1 changed file
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
ppx_blob
default.nix
+18
-7
pkgs/development/ocaml-modules/ppx_blob/default.nix
···
1
-
{ stdenv, buildOcaml, fetchurl, ppx_tools }:
0
0
2
3
-
buildOcaml rec {
4
-
name = "ppx_blob";
5
-
version = "0.2";
6
7
src = fetchurl {
8
-
url = "https://github.com/johnwhitington/ppx_blob/archive/v${version}.tar.gz";
9
-
sha256 = "0kvqfm47f4xbgz0cl7ayz29myyb24xskm35svqrgakjq12nkpsss";
10
};
11
12
-
buildInputs = [ ppx_tools ];
0
0
0
0
0
0
0
0
0
13
14
meta = with stdenv.lib; {
15
homepage = https://github.com/johnwhitington/ppx_blob;
···
1
+
{ stdenv, fetchurl, ocaml, findlib, jbuilder, alcotest
2
+
, ocaml-migrate-parsetree
3
+
}:
4
5
+
stdenv.mkDerivation rec {
6
+
name = "ocaml${ocaml.version}-ppx_blob-${version}";
7
+
version = "0.4.0";
8
9
src = fetchurl {
10
+
url = "https://github.com/johnwhitington/ppx_blob/releases/download/${version}/ppx_blob-${version}.tbz";
11
+
sha256 = "1xmslk1mwdzhy1bydgsjlcb7h544c39hvxa8lywp8w72gaggjl16";
12
};
13
14
+
unpackCmd = "tar xjf $curSrc";
15
+
16
+
buildInputs = [ ocaml findlib jbuilder alcotest ocaml-migrate-parsetree ];
17
+
18
+
buildPhase = "dune build -p ppx_blob";
19
+
20
+
doCheck = true;
21
+
checkPhase = "dune runtest -p ppx_blob";
22
+
23
+
inherit (jbuilder) installPhase;
24
25
meta = with stdenv.lib; {
26
homepage = https://github.com/johnwhitington/ppx_blob;