mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
35 lines
762 B
Nix
35 lines
762 B
Nix
{ 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=";
|
|
};
|
|
|
|
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 [ ];
|
|
};
|
|
}
|