Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6a662cbf4357
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b357f9e62492
Choose a head ref
  • 6 commits
  • 11 files changed
  • 4 contributors

Commits on Mar 6, 2020

  1. ocamlPackages.pgocaml_ppx: init at 4.0

    (cherry picked from commit 4f7484f)
    vbgl authored and nomeata committed Mar 6, 2020
    Copy the full SHA
    525b0d1 View commit details
  2. ocamlPackages.resource-pooling: 0.6 → 1.1

    ocamlPackages.ocsigen-start: 1.8.0 → 2.7.0
    
    (cherry picked from commit c589de9)
    vbgl authored and nomeata committed Mar 6, 2020
    Copy the full SHA
    0456880 View commit details
  3. js_of_ocaml: 3.4.0 -> 3.5.2 (#75766)

    drive-by contributions, as I was playing around with this (it has better
    support for the `num` library, it seems.)
    
    js_of_ocaml: 3.4.0 -> 3.5.2
    ocamlPackages.js_of_ocaml-ppx_deriving_json: use ppxlib-0.12.0
    ocamlPackages.eliom: 6.8.0 → 6.10.1
    ocamlPackages.ocsigen-toolkit: 2.2.0 → 2.5.0
    ocamlPackages.ocsigen-start: 2.7.0 → 2.16.1
    
    Co-authored-by: Vincent Laporte <Vincent.Laporte@gmail.com>
    (cherry picked from commit 2d2a5a9)
    nomeata committed Mar 6, 2020
    Copy the full SHA
    6a8cdf7 View commit details

Commits on Mar 9, 2020

  1. firefox: Fix AArch64 build

     * The 'arm.patch' patch doesn't apply anymore.
     * The 'build-arm-libopus.patch' patch isn't required anymore.
     * See the mozilla phabricator link for the added patch.
    
    Additionally, we are now *always* undconditionally applying all patches
    to all architectures. That is, unless they have undesirable
    side-effects, but those might not be fit for inclusion.
    
    By applying all patches all the time, they'll be removed or replaced
    when they stop applying.
    
    (cherry picked from commit d4446c5)
    samueldr committed Mar 9, 2020
    Copy the full SHA
    6291285 View commit details
  2. Merge pull request #82173 from samueldr/20.03/aarch64/firefox

    [20.03] firefox: Fix AArch64 build
    samueldr authored Mar 9, 2020
    Copy the full SHA
    da92e05 View commit details
  3. Merge pull request #81882 from nomeata/js_of_ocaml-20.03

    backport js_of_ocaml: 3.4.0 -> 3.5.2 (and other required changes)
    vbgl authored Mar 9, 2020
    Copy the full SHA
    b357f9e View commit details
14 changes: 5 additions & 9 deletions pkgs/applications/networking/browsers/firefox/common.nix
Original file line number Diff line number Diff line change
@@ -93,16 +93,12 @@ stdenv.mkDerivation ({

patches = [
./env_var_for_system_dir.patch
] ++ lib.optionals (stdenv.isAarch64) [
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/09c7fa0dc1d87922e3b464c0fa084df1227fca79/extra/firefox/arm.patch";
sha256 = "1vbpih23imhv5r3g21m3m541z08n9n9j1nvmqax76bmyhn7mxp32";
})
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/09c7fa0dc1d87922e3b464c0fa084df1227fca79/extra/firefox/build-arm-libopus.patch";
sha256 = "1zg56v3lc346fkzcjjx21vjip2s9hb2xw4pvza1dsfdnhsnzppfp";
})
]
++ lib.optional (lib.versionAtLeast ffversion "73") (fetchpatch {
# https://phabricator.services.mozilla.com/D60667
url = "https://hg.mozilla.org/mozilla-central/raw-rev/b3d8b08265b800165d684281d19ac845a8ff9a66";
sha256 = "0b4s75w7sl619rglcjmlyvyibpj2ar5cpy6pnywl1xpd9qzyb27p";
})
++ patches;


10 changes: 8 additions & 2 deletions pkgs/applications/science/logic/why3/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ callPackage, fetchurl, stdenv
{ callPackage, fetchurl, fetchpatch, stdenv
, ocamlPackages, coqPackages, rubber, hevea, emacs }:

stdenv.mkDerivation {
@@ -30,7 +30,13 @@ stdenv.mkDerivation {
enableParallelBuilding = true;

# Remove unnecessary call to which
patches = [ ./configure.patch ];
patches = [ ./configure.patch
# Compatibility with js_of_ocaml 3.5
(fetchpatch {
url = "https://gitlab.inria.fr/why3/why3/commit/269ab313382fe3e64ef224813937314748bf7cf0.diff";
sha256 = "0i92wdnbh8pihvl93ac0ma1m5g95jgqqqj4kw6qqvbbjjqdgvzwa";
})
];

configureFlags = [ "--enable-verbose-make" ];

10 changes: 4 additions & 6 deletions pkgs/development/ocaml-modules/eliom/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ stdenv, fetchzip, which, ocsigen_server, ocaml,
lwt_react,
opaline, ppx_tools, ppx_deriving, findlib
, ppx_tools_versioned
opaline, ppx_deriving, findlib
, js_of_ocaml-ocamlbuild, js_of_ocaml-ppx, js_of_ocaml-ppx_deriving_json
, js_of_ocaml-lwt
, js_of_ocaml-tyxml
@@ -15,15 +14,14 @@ else
stdenv.mkDerivation rec
{
pname = "eliom";
version = "6.8.0";
version = "6.10.1";

src = fetchzip {
url = "https://github.com/ocsigen/eliom/archive/${version}.tar.gz";
sha256 = "0di4q0wzbnk9sxlaj97ivghzh8qvjb8n17h80y4nmqhys97pldif";
sha256 = "006722wcmhsfhyzv3qbgrrn53fbv9v4i31z52a0pznb6cll45nkm";
};

buildInputs = [ ocaml which findlib js_of_ocaml-ocamlbuild js_of_ocaml-ppx_deriving_json opaline ppx_tools
ppx_tools_versioned
buildInputs = [ ocaml which findlib js_of_ocaml-ocamlbuild js_of_ocaml-ppx_deriving_json opaline
];

propagatedBuildInputs = [
12 changes: 6 additions & 6 deletions pkgs/development/ocaml-modules/ocsigen-start/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ocsigen_deriving, ocsigen_server
, js_of_ocaml-camlp4, lwt_camlp4
{ stdenv, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, macaque, safepass, yojson
, cohttp-lwt-unix
, resource-pooling
}:

stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ocsigen-start-${version}";
version = "1.8.0";
version = "2.16.1";

buildInputs = [ ocaml findlib eliom js_of_ocaml-camlp4 lwt_camlp4 ];
propagatedBuildInputs = [ pgocaml macaque safepass ocaml_pcre ocsigen-toolkit yojson ocsigen_deriving ocsigen_server resource-pooling ];
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ pgocaml_ppx safepass ocsigen-toolkit yojson resource-pooling cohttp-lwt-unix ];

patches = [ ./templates-dir.patch ];

@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
owner = "ocsigen";
repo = "ocsigen-start";
rev = version;
sha256 = "0h5gp06vxy6jpppz1x840gyf9viiy7lic7spx7fxldpy2jpv058s";
sha256 = "1pzpyrd3vbhc7zvzh6bv44793ikx5bglpd5p4wk5jj65v1w39jwd";
};

meta = {
6 changes: 3 additions & 3 deletions pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@
stdenv.mkDerivation rec {
pname = "ocsigen-toolkit";
name = "ocaml${ocaml.version}-${pname}-${version}";
version = "2.2.0";
version = "2.5.0";

propagatedBuildInputs = [ calendar eliom js_of_ocaml-ppx_deriving_json ];
propagatedBuildInputs = [ calendar js_of_ocaml-ppx_deriving_json eliom ];
buildInputs = [ ocaml findlib opaline ];

installPhase =
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
owner = "ocsigen";
repo = pname;
rev = version;
sha256 = "0qy6501jf81qcmkbicgrb1x4pxsjkhr40plwdn09w37d8vx9va3s";
sha256 = "0hll8qr363pbb65jnr2w36zcbplbwn08xb7826ayiwigakj783p9";
};

createFindlibDestdir = true;
8 changes: 8 additions & 0 deletions pkgs/development/ocaml-modules/pgocaml/ppx.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ buildDunePackage, pgocaml, ppx_tools, ppx_tools_versioned, rresult }:

buildDunePackage {
pname = "pgocaml_ppx";
inherit (pgocaml) src version meta;

propagatedBuildInputs = [ pgocaml ppx_tools ppx_tools_versioned rresult ];
}
11 changes: 9 additions & 2 deletions pkgs/development/ocaml-modules/ppxlib/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{ stdenv, fetchFromGitHub, buildDunePackage
, version ? "0.8.1"
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
}:

let sha256 =
{ "0.8.1" = "0vm0jajmg8135scbg0x60ivyy5gzv4abwnl7zls2mrw23ac6kml6";
"0.12.0" = "1cg0is23c05k1rc94zcdz452p9zn11dpqxm1pnifwx5iygz3w0a1";
}."${version}"
; in

buildDunePackage rec {
pname = "ppxlib";
version = "0.8.1";
inherit version;

src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = pname;
rev = version;
sha256 = "0vm0jajmg8135scbg0x60ivyy5gzv4abwnl7zls2mrw23ac6kml6";
inherit sha256;
};

propagatedBuildInputs = [
27 changes: 9 additions & 18 deletions pkgs/development/ocaml-modules/resource-pooling/default.nix
Original file line number Diff line number Diff line change
@@ -1,35 +1,26 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, lwt_log }:
{ lib, fetchFromGitHub, buildDunePackage, lwt_log }:

let pname = "resource-pooling"; in
buildDunePackage rec {
version = "1.1";
pname = "resource-pooling";

if !stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "${pname} is not available for OCaml ${ocaml.version}"
else

stdenv.mkDerivation rec {
version = "0.6";
name = "ocaml${ocaml.version}-${pname}-${version}";
minimumOCamlVersion = "4.06";

src = fetchFromGitHub {
owner = "ocsigen";
repo = pname;
rev = version;
sha256 = "1hw98a4pndq6ms4vfsyz0ynfz8g21fm73fc7s1gx824fhdx4ywgd";
sha256 = "0wsbnwszafdv3gsiiaslgf6m6pfx74h7h19i0gp2c4ivdiv3wck9";
};

buildInputs = [ ocaml findlib ocamlbuild ];
propagatedBuildInputs = [ lwt_log ];

configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = "ocaml setup.ml -build";
createFindlibDestdir = true;
installPhase = "ocaml setup.ml -install";
doCheck = true;

meta = {
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
description = "A library for pooling resources like connections, threads, or similar";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.vbgl ];
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}
8 changes: 4 additions & 4 deletions pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{ lib, fetchFromGitHub, buildDunePackage
, ocaml, findlib, cmdliner, dune, cppo, yojson
, ocaml, findlib, cmdliner, dune, cppo, yojson, ocaml-migrate-parsetree
}:

buildDunePackage rec {
pname = "js_of_ocaml-compiler";
version = "3.4.0";
version = "3.5.2";

src = fetchFromGitHub {
owner = "ocsigen";
repo = "js_of_ocaml";
rev = version;
sha256 = "0c537say0f3197zn8d83nrihabrxyn28xc6d7c9c3l0vvrv6qvfj";
sha256 = "1fm855iavljx7rf9hii2qb7ky920zv082d9zlcl504by1bxp1yg8";
};

nativeBuildInputs = [ ocaml findlib dune cppo ];
buildInputs = [ cmdliner ];

configurePlatforms = [];
propagatedBuildInputs = [ yojson ];
propagatedBuildInputs = [ yojson ocaml-migrate-parsetree ];

meta = {
description = "Compiler from OCaml bytecode to Javascript";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler
, js_of_ocaml, ppx_deriving
, js_of_ocaml, ppxlib
}:

stdenv.mkDerivation {
@@ -9,7 +9,7 @@ stdenv.mkDerivation {

buildInputs = [ ocaml findlib dune ];

propagatedBuildInputs = [ js_of_ocaml ppx_deriving ];
propagatedBuildInputs = [ js_of_ocaml ppxlib ];

buildPhase = "dune build -p js_of_ocaml-ppx_deriving_json";
}
6 changes: 5 additions & 1 deletion pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -413,7 +413,9 @@ let

js_of_ocaml-ppx = callPackage ../development/tools/ocaml/js_of_ocaml/ppx.nix {};

js_of_ocaml-ppx_deriving_json = callPackage ../development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix {};
js_of_ocaml-ppx_deriving_json = callPackage ../development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix {
ppxlib = ppxlib.override { version = "0.12.0"; };
};

js_of_ocaml-tyxml = callPackage ../development/tools/ocaml/js_of_ocaml/tyxml.nix {};

@@ -604,6 +606,8 @@ let

pgocaml = callPackage ../development/ocaml-modules/pgocaml {};

pgocaml_ppx = callPackage ../development/ocaml-modules/pgocaml/ppx.nix {};

ocaml-sat-solvers = callPackage ../development/ocaml-modules/ocaml-sat-solvers { };

ocamlscript = callPackage ../development/tools/ocaml/ocamlscript { };