diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-02-20 06:13:47 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-02-27 07:33:11 +0100 |
commit | 8706ed24e579c19bcf8281b60d1ac2f638b73bf1 (patch) | |
tree | 89e90abea25dbce360b4bc6a050e14bac112c389 /pkgs/development/ocaml-modules/dum | |
parent | b41a7eeb189d5051770b6523f996d250620c54e0 (diff) | |
download | nixlib-8706ed24e579c19bcf8281b60d1ac2f638b73bf1.tar nixlib-8706ed24e579c19bcf8281b60d1ac2f638b73bf1.tar.gz nixlib-8706ed24e579c19bcf8281b60d1ac2f638b73bf1.tar.bz2 nixlib-8706ed24e579c19bcf8281b60d1ac2f638b73bf1.tar.lz nixlib-8706ed24e579c19bcf8281b60d1ac2f638b73bf1.tar.xz nixlib-8706ed24e579c19bcf8281b60d1ac2f638b73bf1.tar.zst nixlib-8706ed24e579c19bcf8281b60d1ac2f638b73bf1.zip |
ocamlPackages.dum: cleaning
Propagate the `easy-format` dependency. Fix build with OCaml ≥ 4.09.
Diffstat (limited to 'pkgs/development/ocaml-modules/dum')
-rw-r--r-- | pkgs/development/ocaml-modules/dum/default.nix | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/development/ocaml-modules/dum/default.nix b/pkgs/development/ocaml-modules/dum/default.nix index 37c00f6b31e9..5e5199c26905 100644 --- a/pkgs/development/ocaml-modules/dum/default.nix +++ b/pkgs/development/ocaml-modules/dum/default.nix @@ -1,25 +1,24 @@ -{ lib, fetchFromGitHub, buildOcaml, ocaml +{ stdenv, fetchFromGitHub, ocaml, findlib , easy-format }: -buildOcaml rec { - name = "dum"; +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-dum-${version}"; version = "1.0.1"; - minimumOCamlVersion = "4.06"; - src = fetchFromGitHub { owner = "mjambon"; - repo = name; + repo = "dum"; rev = "v${version}"; sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr"; }; - buildInputs = [ easy-format ]; + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ easy-format ]; - doCheck = true; + createFindlibDestdir = true; - meta = with lib; { + meta = with stdenv.lib; { homepage = https://github.com/mjambon/dum; description = "Inspect the runtime representation of arbitrary OCaml values"; license = licenses.lgpl21Plus; |