nixpkgs/pkgs/development/tools/ocaml/cppo/default.nix

37 lines
877 B
Nix
Raw Normal View History

2014-06-25 08:25:14 +00:00
{stdenv, fetchurl, ocaml, findlib}:
let
pname = "cppo";
2014-10-29 16:07:03 +00:00
version = "1.0.1";
2014-06-25 08:25:14 +00:00
webpage = "http://mjambon.com/${pname}.html";
in
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12";
2014-06-25 08:25:14 +00:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
2014-10-29 16:07:03 +00:00
sha256 = "1r71qv9sl6jpza1vi5kgmbi7iwbddh3f9j7yji063c9vimp9f25z";
2014-06-25 08:25:14 +00:00
};
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
makeFlags = "PREFIX=$(out)";
preBuild = ''
mkdir $out/bin
'';
meta = with stdenv.lib; {
2014-06-25 08:25:14 +00:00
description = "The C preprocessor for OCaml";
longDescription = ''
Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants.
'';
homepage = "${webpage}";
maintainers = [ maintainers.vbgl ];
license = licenses.bsd3;
2014-06-25 08:25:14 +00:00
};
}