567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
792 B
Nix
43 lines
792 B
Nix
{
|
|
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 = {
|
|
homepage = "https://github.com/gjaldon/simple_diff";
|
|
description = "Simple_diff is a pure OCaml diffing algorithm";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ ulrikstrid ];
|
|
};
|
|
}
|