diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-09-12 09:45:38 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-09-13 12:26:07 +0200 |
commit | ed7259000440c4a809349a69e34b600cce0abbbf (patch) | |
tree | cde1625fd495528acc7d86512381bd2c3eecca1d | |
parent | 2f0994010ab75d209240b882cec80a7376d686e3 (diff) | |
download | nixpkgs-ed7259000440c4a809349a69e34b600cce0abbbf.tar nixpkgs-ed7259000440c4a809349a69e34b600cce0abbbf.tar.gz nixpkgs-ed7259000440c4a809349a69e34b600cce0abbbf.tar.bz2 nixpkgs-ed7259000440c4a809349a69e34b600cce0abbbf.tar.lz nixpkgs-ed7259000440c4a809349a69e34b600cce0abbbf.tar.xz nixpkgs-ed7259000440c4a809349a69e34b600cce0abbbf.tar.zst nixpkgs-ed7259000440c4a809349a69e34b600cce0abbbf.zip |
Adds ocaml-pprint
Pprint is an OCaml adaptation of Wadler’s and Leijen’s prettier printer. Homepage: http://gallium.inria.fr/~fpottier/pprint/
-rw-r--r-- | pkgs/development/ocaml-modules/pprint/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/pprint/default.nix b/pkgs/development/ocaml-modules/pprint/default.nix new file mode 100644 index 00000000000..e025801bb21 --- /dev/null +++ b/pkgs/development/ocaml-modules/pprint/default.nix @@ -0,0 +1,27 @@ +{stdenv, fetchurl, ocaml, findlib}: + +stdenv.mkDerivation { + + name = "ocaml-pprint-20140424"; + + src = fetchurl { + url = http://gallium.inria.fr/~fpottier/pprint/pprint-20140424.tar.gz; + sha256 = "0sc9q89dnyarcg24czyhr6ams0ylqvia3745s6rfwd2nldpygsdk"; + }; + + buildInputs = [ ocaml findlib ]; + + createFindlibDestdir = true; + + dontBuild = true; + installFlags = "-C src"; + + meta = with stdenv.lib; { + homepage = http://gallium.inria.fr/~fpottier/pprint/; + description = "An OCaml adaptation of Wadler’s and Leijen’s prettier printer"; + license = licenses.cecill-c; + platforms = ocaml.meta.platforms; + }; +} + + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 867dddfa48e..7b33c9e494c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3439,6 +3439,8 @@ let minimal = false; }; + pprint = callPackage ../development/ocaml-modules/pprint { }; + pycaml = callPackage ../development/ocaml-modules/pycaml { }; opam_1_0_0 = callPackage ../development/tools/ocaml/opam/1.0.0.nix { }; |