depot/third_party/nixpkgs/pkgs/development/ocaml-modules/twt/default.nix
Default email 5e2a688410 Project import generated by Copybara.
GitOrigin-RevId: 5e2018f7b383aeca6824a30c0cd1978c9532a46a
2021-10-06 10:57:05 -03:00

31 lines
729 B
Nix

{ lib, stdenv, fetchzip, ocaml, findlib }:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-twt-0.94.0";
src = fetchzip {
url = "https://github.com/mlin/twt/archive/v0.94.0.tar.gz";
sha256 = "0298gdgzl4cifxnc1d8sbrvz1lkiq5r5ifkq1fparm6gvqywpf65";
};
buildInputs = [ ocaml findlib ];
preInstall = ''
mkdir -p $out/bin
mkdir -p $OCAMLFIND_DESTDIR
'';
dontBuild = true;
installFlags = [ "PREFIX=$(out)" ];
dontStrip = true;
meta = with lib; {
homepage = "http://people.csail.mit.edu/mikelin/ocaml+twt/";
description = "The Whitespace Thing for OCaml";
license = licenses.mit;
maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms or [];
};
}