Merge remote-tracking branch 'origin/master' into staging
Conflicts: pkgs/development/libraries/libav/default.nix pkgs/shells/bash/bash-4.2-patches.nix pkgs/stdenv/generic/default.nix
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{stdenv, fetchurl, which, ocaml}:
|
||||
let
|
||||
ocaml_version = (stdenv.lib.getVersion ocaml);
|
||||
in
|
||||
|
||||
assert stdenv.lib.versionAtLeast ocaml_version "4.02";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "camlp4-4.02.0+1";
|
||||
src = fetchurl {
|
||||
url = https://github.com/ocaml/camlp4/archive/4.02.0+1.tar.gz;
|
||||
sha256 = "0055f4jiz82rgn581xhq3mr4qgq2qgdxqppmp8i2x1xnsim4h9pn";
|
||||
};
|
||||
|
||||
buildInputs = [ which ocaml ];
|
||||
|
||||
dontAddPrefix = true;
|
||||
|
||||
preConfigure = ''
|
||||
configureFlagsArray=(
|
||||
--bindir=$out/bin
|
||||
--libdir=$out/lib/ocaml/${ocaml_version}/site-lib
|
||||
--pkgdir=$out/lib/ocaml/${ocaml_version}/site-lib
|
||||
)
|
||||
'';
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace camlp4/META.in \
|
||||
--replace +camlp4 $out/lib/ocaml/${ocaml_version}/site-lib/camlp4
|
||||
substituteInPlace camlp4/config/Camlp4_config.ml \
|
||||
--replace \
|
||||
"Filename.concat ocaml_standard_library" \
|
||||
"Filename.concat \"$out/lib/ocaml/${ocaml_version}/site-lib\""
|
||||
'';
|
||||
|
||||
|
||||
makePhase = "make all";
|
||||
|
||||
installTargets = "install install-META";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A software system for writing extensible parsers for programming languages";
|
||||
homepage = https://github.com/ocaml/camlp4;
|
||||
platforms = ocaml.meta.platforms;
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,8 @@ let
|
||||
metafile = ./META;
|
||||
in
|
||||
|
||||
assert !stdenv.lib.versionOlder "4.00" ocaml_version;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "${pname}${if transitional then "_transitional" else ""}-${version}";
|
||||
|
||||
@@ -7,11 +7,11 @@ in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "camlp5${if transitional then "_transitional" else ""}-6.11";
|
||||
name = "camlp5${if transitional then "_transitional" else ""}-6.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-6.11.tgz;
|
||||
sha256 = "0dxb5id6imq502sic75l786q94dhplqx6yyhjkkw19kf64fiqlk5";
|
||||
url = http://camlp5.gforge.inria.fr/distrib/src/camlp5-6.12.tgz;
|
||||
sha256 = "00jwgp6w4g64lfqjx77xziy532091fy00c42fsy0b4i892rch5mp";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml ];
|
||||
@@ -25,17 +25,17 @@ stdenv.mkDerivation {
|
||||
|
||||
postInstall = "cp ${metafile} $out/lib/ocaml/${ocaml_version}/site-lib/camlp5/META";
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Preprocessor-pretty-printer for OCaml";
|
||||
longDescription = ''
|
||||
Camlp5 is a preprocessor and pretty-printer for OCaml programs.
|
||||
It also provides parsing and printing tools.
|
||||
'';
|
||||
homepage = http://pauillac.inria.fr/~ddr/camlp5/;
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
platforms = ocaml.meta.platforms;
|
||||
maintainers = [
|
||||
stdenv.lib.maintainers.z77z
|
||||
maintainers = with maintainers; [
|
||||
z77z vbgl
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ let
|
||||
version = "0.9.4";
|
||||
webpage = "http://mjambon.com/${pname}.html";
|
||||
in
|
||||
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12";
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "${pname}-${version}";
|
||||
@@ -23,15 +24,13 @@ stdenv.mkDerivation rec {
|
||||
mkdir $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
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";
|
||||
maintainers = [ maintainers.vbgl ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, yojson, menhir}:
|
||||
|
||||
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "merlin-1.7.1";
|
||||
@@ -12,10 +15,10 @@ stdenv.mkDerivation {
|
||||
|
||||
prefixKey = "--prefix ";
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "An editor-independent tool to ease the development of programs in OCaml";
|
||||
homepage = "http://the-lambda-church.github.io/merlin/";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.vbgl ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, ounit}:
|
||||
{stdenv, fetchurl, ocaml, findlib}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocamlify-0.0.2";
|
||||
@@ -8,7 +8,7 @@ stdenv.mkDerivation {
|
||||
sha256 = "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml findlib ounit];
|
||||
buildInputs = [ocaml findlib];
|
||||
|
||||
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
||||
buildPhase = "ocaml setup.ml -build";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, ounit}:
|
||||
{stdenv, fetchurl, ocaml, findlib}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocamlmod-0.0.7";
|
||||
@@ -8,7 +8,7 @@ stdenv.mkDerivation {
|
||||
sha256 = "11kg7wh0gy492ma5c6bcjh6frv1a9lh9f26hiys2i0d1ky8s0ad3";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml findlib ounit];
|
||||
buildInputs = [ocaml findlib];
|
||||
|
||||
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
||||
buildPhase = "ocaml setup.ml -build";
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{ stdenv, fetchgit, fetchurl, ocaml, unzip, ncurses, curl }:
|
||||
|
||||
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12.1";
|
||||
|
||||
let
|
||||
srcs = {
|
||||
cudf = fetchurl {
|
||||
|
||||
Reference in New Issue
Block a user