1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 ocaml, 6 findlib, 7 topkg, 8 ocamlbuild, 9 re, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "ocaml${ocaml.version}-simple-diff"; 14 version = "0.3"; 15 16 src = fetchFromGitHub { 17 owner = "gjaldon"; 18 repo = "simple_diff"; 19 rev = "v${version}"; 20 sha256 = "sha256-OaKECUBCCt9KfdRJf3HcXTUJVxKKdYtnzOHpMPOllrk="; 21 }; 22 23 nativeBuildInputs = [ 24 ocaml 25 findlib 26 ocamlbuild 27 topkg 28 ]; 29 buildInputs = [ topkg ]; 30 propagatedBuildInputs = [ re ]; 31 32 strictDeps = true; 33 34 inherit (topkg) buildPhase installPhase; 35 36 meta = with lib; { 37 homepage = "https://github.com/gjaldon/simple_diff"; 38 description = "Simple_diff is a pure OCaml diffing algorithm"; 39 license = licenses.isc; 40 maintainers = with maintainers; [ ulrikstrid ]; 41 }; 42}