From 7c15d4b15ff759831d848ac7c1af1e932cd65da8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 9 Apr 2020 18:58:17 +0200 Subject: [PATCH] ocamlPackages.ppx_blob: separate checkInputs --- pkgs/development/ocaml-modules/ppx_blob/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/ppx_blob/default.nix b/pkgs/development/ocaml-modules/ppx_blob/default.nix index b6a451848c9a..cc106b70f42e 100644 --- a/pkgs/development/ocaml-modules/ppx_blob/default.nix +++ b/pkgs/development/ocaml-modules/ppx_blob/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, buildDunePackage, alcotest, ocaml-migrate-parsetree }: +{ lib, fetchurl, buildDunePackage, alcotest, ocaml-migrate-parsetree }: buildDunePackage rec { pname = "ppx_blob"; @@ -9,10 +9,11 @@ buildDunePackage rec { sha256 = "1xmslk1mwdzhy1bydgsjlcb7h544c39hvxa8lywp8w72gaggjl16"; }; - buildInputs = [ alcotest ocaml-migrate-parsetree ]; + checkInputs = lib.optional doCheck alcotest; + buildInputs = [ ocaml-migrate-parsetree ]; doCheck = true; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://github.com/johnwhitington/ppx_blob"; description = "OCaml ppx to include binary data from a file as a string"; license = licenses.unlicense;