tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
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
1
-
{ stdenv, buildOcaml, fetchurl, ppx_tools }:
1
1
+
{ stdenv, fetchurl, ocaml, findlib, jbuilder, alcotest
2
2
+
, ocaml-migrate-parsetree
3
3
+
}:
2
4
3
3
-
buildOcaml rec {
4
4
-
name = "ppx_blob";
5
5
-
version = "0.2";
5
5
+
stdenv.mkDerivation rec {
6
6
+
name = "ocaml${ocaml.version}-ppx_blob-${version}";
7
7
+
version = "0.4.0";
6
8
7
9
src = fetchurl {
8
8
-
url = "https://github.com/johnwhitington/ppx_blob/archive/v${version}.tar.gz";
9
9
-
sha256 = "0kvqfm47f4xbgz0cl7ayz29myyb24xskm35svqrgakjq12nkpsss";
10
10
+
url = "https://github.com/johnwhitington/ppx_blob/releases/download/${version}/ppx_blob-${version}.tbz";
11
11
+
sha256 = "1xmslk1mwdzhy1bydgsjlcb7h544c39hvxa8lywp8w72gaggjl16";
10
12
};
11
13
12
12
-
buildInputs = [ ppx_tools ];
14
14
+
unpackCmd = "tar xjf $curSrc";
15
15
+
16
16
+
buildInputs = [ ocaml findlib jbuilder alcotest ocaml-migrate-parsetree ];
17
17
+
18
18
+
buildPhase = "dune build -p ppx_blob";
19
19
+
20
20
+
doCheck = true;
21
21
+
checkPhase = "dune runtest -p ppx_blob";
22
22
+
23
23
+
inherit (jbuilder) installPhase;
13
24
14
25
meta = with stdenv.lib; {
15
26
homepage = https://github.com/johnwhitington/ppx_blob;