Skip to content
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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6106e8d028b7
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 03a5cf84440f
Choose a head ref
  • 4 commits
  • 5 files changed
  • 2 contributors

Commits on Sep 29, 2019

  1. antlr4: 4.7.1 -> 4.7.2

    Jonathan Ringer committed Sep 29, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    gregberge Greg Bergé
    Copy the full SHA
    23d3a02 View commit details
  2. mysqlWorkbench: support antlr4.7.2

    Jonathan Ringer committed Sep 29, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cca1670 View commit details
  3. pythonPackages.antlr4-python{2,3}-runtime: use antlr4 source

    Jonathan Ringer committed Sep 29, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    24fde66 View commit details

Commits on Oct 6, 2019

  1. Merge pull request #66643 from jonringer/bump-antlr4

    antlr4: 4.7.1 -> 4.7.2
    marsam authored Oct 6, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    03a5cf8 View commit details
6 changes: 6 additions & 0 deletions pkgs/applications/misc/mysql-workbench/default.nix
Original file line number Diff line number Diff line change
@@ -37,6 +37,12 @@ in stdenv.mkDerivation rec {
})
];

# have it look for 4.7.2 instead of 4.7.1
preConfigure = ''
substituteInPlace CMakeLists.txt \
--replace "antlr-4.7.1-complete.jar" "antlr-4.7.2-complete.jar"
'';

nativeBuildInputs = [
cmake ninja pkgconfig jre swig wrapGAppsHook
];
19 changes: 11 additions & 8 deletions pkgs/development/python-modules/antlr4-python2-runtime/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{ stdenv, fetchPypi, buildPythonPackage, isPy3k }:
{ lib, buildPythonPackage, isPy3k, python
, antlr4
}:

buildPythonPackage rec {
pname = "antlr4-python2-runtime";
version = "4.7.2";
inherit (antlr4.runtime.cpp) version src;
disabled = isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "04ljic5wnqpizln8q3c78pqrckz6q5nb433if00j1mlyv2yja22q";
};
sourceRoot = "source/runtime/Python2";

checkPhase = ''
${python.interpreter} tests/TestTokenStreamRewriter.py
'';

meta = {
meta = with lib; {
description = "Runtime for ANTLR";
homepage = "https://www.antlr.org/";
license = stdenv.lib.licenses.bsd3;
license = licenses.bsd3;
};
}
20 changes: 12 additions & 8 deletions pkgs/development/python-modules/antlr4-python3-runtime/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{ stdenv, fetchPypi, buildPythonPackage, isPy3k }:
{ lib, buildPythonPackage, isPy3k, python
, antlr4
}:

buildPythonPackage rec {
pname = "antlr4-python3-runtime";
version = "4.7.2";
inherit (antlr4.runtime.cpp) version src;
disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "02xm7ccsf51vh4xsnhlg6pvchm1x3ckgv9kwm222w5drizndr30n";
};
sourceRoot = "source/runtime/Python3";

checkPhase = ''
cd test
${python.interpreter} ctest.py
'';

meta = {
meta = with lib; {
description = "Runtime for ANTLR";
homepage = "https://www.antlr.org/";
license = stdenv.lib.licenses.bsd3;
license = licenses.bsd3;
};
}
7 changes: 4 additions & 3 deletions pkgs/development/tools/parsing/antlr/4.7.nix
Original file line number Diff line number Diff line change
@@ -2,12 +2,12 @@
, fetchFromGitHub, cmake, ninja, pkgconfig, libuuid, darwin }:

let
version = "4.7.1";
version = "4.7.2";
source = fetchFromGitHub {
owner = "antlr";
repo = "antlr4";
rev = version;
sha256 = "1xb4d9bd4hw406v85s64gg8gwcrrsrw171vhga1gz4xj6pzfwxz7";
sha256 = "1pl0zs6c6wx9nmq30s7ccpc3dl72az55i8vfp574fw9sywmvxmlj";
};

runtime = {
@@ -38,9 +38,10 @@ let
antlr = stdenv.mkDerivation {
pname = "antlr";
inherit version;

src = fetchurl {
url ="https://www.antlr.org/download/antlr-${version}-complete.jar";
sha256 = "1236gwnzchama92apb2swmklnypj01m7bdwwfvwvl8ym85scw7gl";
sha256 = "1d40nfkq3ws8g4ksx4gj6l6m2l9j4b605q6sf68z5vvmg5nkhlk8";
};

dontUnpack = true;
4 changes: 2 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -1387,9 +1387,9 @@ in {

amqplib = callPackage ../development/python-modules/amqplib {};

antlr4-python2-runtime = callPackage ../development/python-modules/antlr4-python2-runtime {};
antlr4-python2-runtime = callPackage ../development/python-modules/antlr4-python2-runtime { antlr4 = pkgs.antlr4; };

antlr4-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime {};
antlr4-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime { antlr4 = pkgs.antlr4; };

apipkg = callPackage ../development/python-modules/apipkg {};