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: da92e0566d13
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: dbacfa172f9a
Choose a head ref
  • 7 commits
  • 12 files changed
  • 6 contributors

Commits on Mar 1, 2020

  1. amp: 0.6.1 -> 0.6.2

    (cherry picked from commit 1820ce4922972cce690fbcc7e1dc3b6c239af603)
    B4dM4n committed Mar 1, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    grahamc Graham Christensen
    Copy the full SHA
    f0608b0 View commit details

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. 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

Commits on Mar 10, 2020

  1. Merge pull request #81463 from B4dM4n/amp-update-backport

    [20.03] amp: 0.6.1 -> 0.6.2
    marsam authored Mar 10, 2020
    Copy the full SHA
    c5db275 View commit details
  2. licensor: Fix test in 2020

    (cherry picked from commit c8299d6)
    clkamp authored and Mic92 committed Mar 10, 2020
    Copy the full SHA
    dbacfa1 View commit details
9 changes: 4 additions & 5 deletions pkgs/applications/editors/amp/default.nix
Original file line number Diff line number Diff line change
@@ -3,17 +3,16 @@

rustPlatform.buildRustPackage rec {
pname = "amp";
# The latest release (0.5.2) does not compile, so we use a git snapshot instead.
version = "unstable-2019-06-09";
version = "0.6.2";

src = fetchFromGitHub {
owner = "jmacdonald";
repo = pname;
rev = "2c88e82a88ada8a5fd2620ef225192395a4533a2";
sha256 = "0ha1xiabq31s687gkrnszf3zc7b3sfdl79iyg5ygbc49mzvarp8c";
rev = version;
sha256 = "0l1vpcfq6jrq2dkrmsa4ghwdpp7c54f46gz3n7nk0i41b12hnigw";
};

cargoSha256 = "1bvj2zg19ak4vi47vjkqlybz011kn5zq1j7zznr76zrryacw4lz1";
cargoSha256 = "1rfpk3gaas1x0p2hx0cfhlpjh7yy2sw1pb4n6wly5h3vxzkmd214";

nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ openssl python3 xorg.libxcb libgit2 ] ++ stdenv.lib.optionals stdenv.isDarwin
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";
}
7 changes: 6 additions & 1 deletion pkgs/tools/misc/licensor/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:

rustPlatform.buildRustPackage rec {
pname = "licensor";
@@ -11,6 +11,11 @@ rustPlatform.buildRustPackage rec {
sha256 = "0zr8hcq7crmhrdhwcclc0nap68wvg5kqn5l93ha0vn9xgjy8z11p";
};

patches = [ (fetchpatch {
url = "https://github.com/raftario/licensor/commit/77ae1ea6d9b6de999ee7590d9dbd3c8465d70bb6.patch";
sha256 = "0kfyg06wa2v7swm7hs9kkazjg34mircd4nm4qmljyzjh2yh8icg3";
})];

cargoSha256 = "042dplm0cdxkv73m5qlkc61h0x9fpzxn2b0c8gjx2hwvigcia139";

meta = with lib; {
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 { };