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