My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/ocaml-modules/twt/default.nix

37 lines
812 B

{ 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;
preInstall = ''
mkdir -p $out/bin
mkdir -p $OCAMLFIND_DESTDIR
'';
dontBuild = true;
installFlags = [ "PREFIX=$(out)" ];
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;
};
}