Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ocamlPackages.ppx_import: 1.5 -> 1.5-3

authored by

Vincent Laporte and committed by
Vincent Laporte
ee843ee8 47c4876d

+12 -15
+12 -15
pkgs/development/ocaml-modules/ppx_import/default.nix
··· 1 - { stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline 2 - , cppo, ounit, ppx_deriving 3 }: 4 5 - if !stdenv.lib.versionAtLeast ocaml.version "4.02" 6 then throw "ppx_import is not available for OCaml ${ocaml.version}" 7 else 8 9 - stdenv.mkDerivation rec { 10 - name = "ocaml${ocaml.version}-ppx_import-${version}"; 11 - 12 - version = "1.5"; 13 14 src = fetchFromGitHub { 15 owner = "ocaml-ppx"; 16 repo = "ppx_import"; 17 - rev = "v${version}"; 18 - sha256 = "1lf5lfp6bl5g4gdszaa6k6pkyh3qyhbarg5m1j0ai3i8zh5qg09d"; 19 }; 20 21 - buildInputs = [ ocaml findlib ocamlbuild cppo ounit ppx_deriving opaline ]; 22 23 doCheck = true; 24 checkTarget = "test"; 25 26 - installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR"; 27 - 28 - meta = with stdenv.lib; { 29 description = "A syntax extension that allows to pull in types or signatures from other compiled interface files"; 30 - license = licenses.mit; 31 - inherit (ocaml.meta) platforms; 32 inherit (src.meta) homepage; 33 }; 34 }
··· 1 + { lib, fetchFromGitHub, buildDunePackage, ocaml 2 + , ounit, ppx_deriving, ppx_tools_versioned 3 }: 4 5 + if !lib.versionAtLeast ocaml.version "4.04" 6 then throw "ppx_import is not available for OCaml ${ocaml.version}" 7 else 8 9 + buildDunePackage rec { 10 + pname = "ppx_import"; 11 + version = "1.5-3"; 12 13 src = fetchFromGitHub { 14 owner = "ocaml-ppx"; 15 repo = "ppx_import"; 16 + rev = "bd627d5afee597589761d6fee30359300b5e1d80"; 17 + sha256 = "1f9bphif1izhyx72hvwpkd9kxi9lfvygaicy6nbxyp6qgc87z4nm"; 18 }; 19 20 + buildInputs = [ ounit ppx_deriving ]; 21 + propagatedBuildInputs = [ ppx_tools_versioned ]; 22 23 doCheck = true; 24 checkTarget = "test"; 25 26 + meta = { 27 description = "A syntax extension that allows to pull in types or signatures from other compiled interface files"; 28 + license = lib.licenses.mit; 29 inherit (src.meta) homepage; 30 }; 31 }