mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
Adds cppo
This commit is contained in:
parent
429bdef9bd
commit
e7df430d91
37
pkgs/development/tools/ocaml/cppo/default.nix
Normal file
37
pkgs/development/tools/ocaml/cppo/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{stdenv, fetchurl, ocaml, findlib}:
|
||||
let
|
||||
pname = "cppo";
|
||||
version = "0.9.4";
|
||||
webpage = "http://mjambon.com/${pname}.html";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
|
||||
sha256 = "1m7cbja7cf74l45plqnmjrjjz55v8x65rvx0ikk9mg1ak8lcmvxa";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
makeFlags = "PREFIX=$(out)";
|
||||
|
||||
preBuild = ''
|
||||
mkdir $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
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}";
|
||||
license = "bsd";
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -3175,6 +3175,8 @@ let
|
|||
|
||||
ocaml_cairo = callPackage ../development/ocaml-modules/ocaml-cairo { };
|
||||
|
||||
cppo = callPackage ../development/tools/ocaml/cppo { };
|
||||
|
||||
cryptokit = callPackage ../development/ocaml-modules/cryptokit { };
|
||||
|
||||
deriving = callPackage ../development/tools/ocaml/deriving { };
|
||||
|
|
Loading…
Reference in a new issue