diff options
author | Ulrik Strid <ulrik.strid@outlook.com> | 2023-02-20 09:54:09 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-02-20 11:03:39 +0100 |
commit | 430385cad56869d1163bd4020dc5a59a4f633aec (patch) | |
tree | 178a83088e6e069fd124a467eac76120466198ec /pkgs | |
parent | b69883faca9542d135fa6bab7928ff1b233c167f (diff) |
ocamlPackages.simple-diff: init at 0.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/simple-diff/default.nix | 28 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/simple-diff/default.nix b/pkgs/development/ocaml-modules/simple-diff/default.nix new file mode 100644 index 0000000000000..a87026fb4a0b7 --- /dev/null +++ b/pkgs/development/ocaml-modules/simple-diff/default.nix @@ -0,0 +1,28 @@ +{ stdenv, lib, fetchFromGitHub, ocaml, findlib, topkg, ocamlbuild, re }: + +stdenv.mkDerivation rec { + pname = "ocaml${ocaml.version}-simple-diff"; + version = "0.3"; + + src = fetchFromGitHub { + owner = "gjaldon"; + repo = "simple_diff"; + rev = "v${version}"; + sha256 = "sha256-OaKECUBCCt9KfdRJf3HcXTUJVxKKdYtnzOHpMPOllrk="; + }; + + nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; + buildInputs = [ topkg ]; + propagatedBuildInputs = [ re ]; + + strictDeps = true; + + inherit (topkg) buildPhase installPhase; + + meta = with lib; { + homepage = "https://github.com/gjaldon/simple_diff"; + description = "Simple_diff is a pure OCaml diffing algorithm"; + license = licenses.isc; + maintainers = with maintainers; [ ulrikstrid ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 0e704ce26af8a..b91c1ae009ba5 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1260,6 +1260,8 @@ let inherit (pkgs) shine; }; + simple-diff = callPackage ../development/ocaml-modules/simple-diff { }; + sosa = callPackage ../development/ocaml-modules/sosa { }; soundtouch = callPackage ../development/ocaml-modules/soundtouch { |