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

Commits on Apr 20, 2020

  1. Copy the full SHA
    261d7c2 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3a9f743 View commit details
  3. Copy the full SHA
    c624289 View commit details
  4. Copy the full SHA
    ad7b736 View commit details
  5. Merge pull request #84535 from bcdarwin/update-beluga

    beluga: 20180403 -> unstable-2020-03-11
    bhipple authored Apr 20, 2020
    Copy the full SHA
    e4db75f View commit details
38 changes: 22 additions & 16 deletions pkgs/applications/science/logic/beluga/default.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
{ stdenv, fetchFromGitHub, ocamlPackages, omake }:
{ lib, fetchFromGitHub, ocamlPackages, rsync }:

stdenv.mkDerivation {
name = "beluga-20180403";
ocamlPackages.buildDunePackage {
pname = "beluga";
version = "unstable-2020-03-11";

src = fetchFromGitHub {
owner = "Beluga-lang";
repo = "Beluga";
rev = "046aa59f008be70a7c4700b723bed0214ea8b687";
sha256 = "0m68y0r0wdw3mg2jks68bihaww7sg305zdfnic1rkndq2cxv0mld";
rev = "6133b2f572219333f304bb4f77c177592324c55b";
sha256 = "0sy6mi50z3mvs5z7dx38piydapk89all81rh038x3559b5fsk68q";
};

nativeBuildInputs = with ocamlPackages; [ findlib ocamlbuild omake ];
buildInputs = with ocamlPackages; [ ocaml ulex ocaml_extlib ];
useDune2 = true;

installPhase = ''
mkdir -p $out
cp -r bin $out/
buildInputs = with ocamlPackages; [
gen sedlex_2 ocaml_extlib dune-build-info linenoise
];

mkdir -p $out/share/beluga
cp -r tools/ examples/ $out/share/beluga
postPatch = ''
patchShebangs ./TEST ./run_harpoon_test.sh
'';

checkPhase = "./TEST";
checkInputs = [ rsync ];
doCheck = true;

postInstall = ''
mkdir -p $out/share/emacs/site-lisp/beluga/
cp -r tools/beluga-mode.el $out/share/emacs/site-lisp/beluga
'';

meta = {
meta = with lib; {
description = "A functional language for reasoning about formal systems";
homepage = "http://complogic.cs.mcgill.ca/beluga/";
license = stdenv.lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.bcdarwin ];
platforms = stdenv.lib.platforms.unix;
license = licenses.gpl3Plus;
maintainers = [ maintainers.bcdarwin ];
platforms = platforms.unix;
};
}
17 changes: 17 additions & 0 deletions pkgs/development/ocaml-modules/dune-build-info/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ lib, buildDunePackage, dune_2 }:

buildDunePackage rec {
pname = "dune-build-info";
inherit (dune_2) src version;

useDune2 = true;

dontAddPrefix = true;

meta = with lib; {
inherit (dune_2.meta) homepage;
description = "Embed build information inside executables";
maintainers = [ maintainers.bcdarwin ];
license = licenses.mit;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/linenoise/default.nix
Original file line number Diff line number Diff line change
@@ -2,15 +2,15 @@

buildDunePackage rec {
pname = "linenoise";
version = "1.1.0";
version = "1.3.0";

minimumOCamlVersion = "4.02";

src = fetchFromGitHub {
owner = "fxfactorial";
repo = "ocaml-${pname}";
rev = "v${version}";
sha256 = "1h6rqfgmhmd7p5z8yhk6zkbrk4yzw1v2fgwas2b7g3hqs6y0xj0q";
sha256 = "0m9mm1arsawi5w5aqm57z41sy1wfxvhfgbdiw7hzy631i391144g";
};

propagatedBuildInputs = [ result ];
6 changes: 3 additions & 3 deletions pkgs/development/ocaml-modules/sedlex/2.nix
Original file line number Diff line number Diff line change
@@ -38,9 +38,9 @@ buildDunePackage rec {
sha256 = "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26";
};

buildInputs = [ ppx_tools_versioned ocaml-migrate-parsetree ];

propagatedBuildInputs = [ gen uchar ];
propagatedBuildInputs = [
gen uchar ocaml-migrate-parsetree ppx_tools_versioned
];

preBuild = ''
ln -s ${DerivedCoreProperties} src/generator/data/DerivedCoreProperties.txt
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -234,6 +234,8 @@ let

dune_2 = callPackage ../development/tools/ocaml/dune/2.nix { };

dune-build-info = callPackage ../development/ocaml-modules/dune-build-info { };

dune-configurator = callPackage ../development/ocaml-modules/dune-configurator { };

dune-private-libs = callPackage ../development/ocaml-modules/dune-private-libs { };