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: d9dba88d08a9
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6b0396351eff
Choose a head ref
  • 5 commits
  • 7 files changed
  • 1 contributor

Commits on Jan 5, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    67b72b7 View commit details
  2. ocamlPackages.trie: init at 1.0.0

    Strict impure trie tree in OCaml
    vbgl committed Jan 5, 2021
    Copy the full SHA
    a2dfc89 View commit details
  3. ocamlPackages.mew: init at 0.1.0

    A general modal editing engine generator
    vbgl committed Jan 5, 2021
    Copy the full SHA
    343eb4d View commit details
  4. ocamlPackages.mew_vi: init at 0.5.0

    This is a vi-like modal editing engine generator.
    vbgl committed Jan 5, 2021
    Copy the full SHA
    321c46c View commit details
  5. ocamlPackages.lambdaTerm: 2.0.3 → 3.1.0

    ocamlPackages.utop: 2.4.3 → 2.6.0
    vbgl committed Jan 5, 2021
    Copy the full SHA
    6b03963 View commit details
9 changes: 4 additions & 5 deletions pkgs/development/compilers/reason/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, makeWrapper, fetchFromGitHub, ocaml, findlib, dune
{ stdenv, makeWrapper, fetchFromGitHub, ocaml, findlib, dune_2
, fix, menhir, merlin-extend, ppx_tools_versioned, utop, cppo
}:

@@ -17,13 +17,12 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = [ menhir merlin-extend ppx_tools_versioned ];

buildInputs = [ ocaml findlib dune cppo fix utop menhir ];
buildInputs = [ ocaml findlib dune_2 cppo fix utop menhir ];

buildFlags = [ "build" ]; # do not "make tests" before reason lib is installed

inherit (dune) installPhase;

postInstall = ''
installPhase = ''
dune install --prefix=$out --libdir=$OCAMLFIND_DESTDIR
wrapProgram $out/bin/rtop \
--prefix PATH : "${utop}/bin" \
--prefix CAML_LD_LIBRARY_PATH : "$CAML_LD_LIBRARY_PATH" \
23 changes: 13 additions & 10 deletions pkgs/development/ocaml-modules/lambda-term/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{ stdenv, fetchurl, libev, buildDunePackage, zed, lwt_log, lwt_react }:
{ lib, fetchFromGitHub, buildDunePackage, zed, lwt_log, lwt_react, mew_vi }:

buildDunePackage rec {
pname = "lambda-term";
version = "2.0.3";
version = "3.1.0";

src = fetchurl {
url = "https://github.com/ocaml-community/lambda-term/releases/download/${version}/lambda-term-${version}.tbz";
sha256 = "1n1b3ffj41a1lm2315hh870yj9h8gg8g9jcxha6dr3xx8r84np3v";
useDune2 = true;

src = fetchFromGitHub {
owner = "ocaml-community";
repo = pname;
rev = version;
sha256 = "1k0ykiz0vhpyyj9fkss29ajas4fh1xh449j702xkvayqipzj1mkg";
};

buildInputs = [ libev ];
propagatedBuildInputs = [ zed lwt_log lwt_react ];
propagatedBuildInputs = [ zed lwt_log lwt_react mew_vi ];

meta = { description = "Terminal manipulation library for OCaml";
longDescription = ''
@@ -28,10 +31,10 @@ buildDunePackage rec {
console applications.
'';

homepage = "https://github.com/diml/lambda-term";
license = stdenv.lib.licenses.bsd3;
inherit (src.meta) homepage;
license = lib.licenses.bsd3;
maintainers = [
stdenv.lib.maintainers.gal_bolle
lib.maintainers.gal_bolle
];
};
}
27 changes: 27 additions & 0 deletions pkgs/development/ocaml-modules/mew/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib, buildDunePackage, fetchFromGitHub
, result, trie
}:

buildDunePackage rec {
pname = "mew";
version = "0.1.0";

useDune2 = true;

src = fetchFromGitHub {
owner = "kandu";
repo = pname;
rev = version;
sha256 = "0417xsghj92v3xa5q4dk4nzf2r4mylrx2fd18i7cg3nzja65nia2";
};

propagatedBuildInputs = [ result trie ];

meta = {
inherit (src.meta) homepage;
license = lib.licenses.mit;
description = "Modal Editing Witch";
maintainers = [ lib.maintainers.vbgl ];
};

}
27 changes: 27 additions & 0 deletions pkgs/development/ocaml-modules/mew_vi/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib, buildDunePackage, fetchFromGitHub
, mew, react
}:

buildDunePackage rec {
pname = "mew_vi";
version = "0.5.0";

useDune2 = true;

src = fetchFromGitHub {
owner = "kandu";
repo = pname;
rev = version;
sha256 = "0lihbf822k5zasl60w5mhwmdkljlq49c9saayrws7g4qc1j353r8";
};

propagatedBuildInputs = [ mew react ];

meta = {
inherit (src.meta) homepage;
license = lib.licenses.mit;
description = "Modal Editing Witch, VI interpreter";
maintainers = [ lib.maintainers.vbgl ];
};

}
23 changes: 23 additions & 0 deletions pkgs/development/ocaml-modules/trie/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ lib, buildDunePackage, fetchFromGitHub }:

buildDunePackage rec {
pname = "trie";
version = "1.0.0";

useDune2 = true;

src = fetchFromGitHub {
owner = "kandu";
repo = pname;
rev = version;
sha256 = "0s7p9swjqjsqddylmgid6cv263ggq7pmb734z4k84yfcrgb6kg4g";
};

meta = {
inherit (src.meta) homepage;
license = lib.licenses.mit;
description = "Strict impure trie tree";
maintainers = [ lib.maintainers.vbgl ];
};

}
8 changes: 5 additions & 3 deletions pkgs/development/tools/ocaml/utop/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, dune
{ stdenv, fetchurl, ocaml, findlib
, lambdaTerm, cppo, makeWrapper, buildDunePackage
}:

@@ -8,11 +8,13 @@ else

buildDunePackage rec {
pname = "utop";
version = "2.4.3";
version = "2.6.0";

useDune2 = true;

src = fetchurl {
url = "https://github.com/ocaml-community/utop/releases/download/${version}/utop-${version}.tbz";
sha256 = "107al0l3x4a5kkjka7glmhsqlm7pwzzc6shspiv5gsjb49pblc2f";
sha256 = "17n9igl74xcvj0mzdh2ybda29f2m48a5lj4yf8lrdqr7vg0982jd";
};

nativeBuildInputs = [ makeWrapper ];
6 changes: 6 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -569,6 +569,10 @@ let
inherit (pkgs) gnuplot;
};

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

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

mezzo = callPackage ../development/compilers/mezzo { };

minisat = callPackage ../development/ocaml-modules/minisat { };
@@ -1021,6 +1025,8 @@ let

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

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

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

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