Author: roconnor
Date: Tue Oct 4 01:40:45 2011
New Revision: 29619
URL: https://ssl.nixos.org/websvn/nix/?rev=29619&sc=1
Log:
New package for CamlIDL 1.05
Added:
nixpkgs/trunk/pkgs/development/tools/ocaml/camlidl/
nixpkgs/trunk/pkgs/development/tools/ocaml/camlidl/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/development/tools/ocaml/camlidl/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/development/tools/ocaml/camlidl/default.nix Tue Oct
4 01:40:45 2011 (r29619)
@@ -0,0 +1,32 @@
+{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
+let
+ ocaml_version = (builtins.parseDrvName ocaml.name).version;
+ pname = "camlidl";
+ version = "1.05";
+ webpage = "http://caml.inria.fr/pub/old_caml_site/camlidl/";
+in
+stdenv.mkDerivation {
+
+ name = "${pname}-${version}";
+
+ src = fetchurl {
+ url =
"http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/${pname}-${version}.tar.gz";
+ sha256 = "0483cs66zsxsavcllpw1qqvyhxb39ddil3h72clcd69g7fyxazl5";
+ };
+
+ buildInputs = [ ocaml ];
+
+ preBuild = ''
+ mv config/Makefile.unix config/Makefile
+ substituteInPlace config/Makefile --replace BINDIR=/usr/local/bin
BINDIR=$out
+ substituteInPlace config/Makefile --replace OCAMLLIB=/usr/local/lib/ocaml
OCAMLLIB=$out/lib/ocaml/${ocaml_version}/site-lib/camlidl
+ ensureDir $out/lib/ocaml/${ocaml_version}/site-lib/camlidl/caml
+ '';
+
+ meta = {
+ description = "CamlIDL is a stub code generator and COM binding for
Objective Caml";
+ homepage = "${webpage}";
+ license = "LGPL";
+ maintainers = [ stdenv.lib.maintainers.roconnor ];
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Oct 3 20:50:08
2011 (r29618)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Tue Oct 4 01:40:45
2011 (r29619)
@@ -2289,6 +2289,8 @@
mkOcamlPackages = ocaml: self: let callPackage = newScope self; in rec {
inherit ocaml;
+ camlidl = callPackage ../development/tools/ocaml/camlidl { };
+
camlp5_strict = callPackage ../development/tools/ocaml/camlp5 { };
camlp5_transitional = callPackage ../development/tools/ocaml/camlp5 {
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits