nixpkgs/pkgs/development/ocaml-modules/twt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
812 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, ocaml, findlib }:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-twt";
version = "0.94.0";
src = fetchFromGitHub {
owner = "mlin";
repo = "twt";
rev = "v${version}";
sha256 = "sha256-xbjLPd7P1KyuC3i6WHLBcdLwd14atcBsd5ER+l97KAk=";
};
nativeBuildInputs = [ ocaml findlib ];
strictDeps = true;
2021-09-28 19:53:23 +00:00
preInstall = ''
mkdir -p $out/bin
mkdir -p $OCAMLFIND_DESTDIR
'';
2014-09-03 10:06:58 +00:00
dontBuild = true;
2019-11-05 01:10:31 +00:00
installFlags = [ "PREFIX=$(out)" ];
2017-06-25 19:56:39 +00:00
dontStrip = true;
meta = with lib; {
description = "The Whitespace Thing for OCaml";
homepage = "http://people.csail.mit.edu/mikelin/ocaml+twt/";
license = licenses.mit;
maintainers = [ maintainers.vbgl ];
mainProgram = "ocaml+twt";
inherit (ocaml.meta) platforms;
};
}