Skip to content
Snippets Groups Projects
Commit 02cf2f4c authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[nix] update commit

- removes custom camlp5 (updated)
- removes custom ocamlgraph (updated)
- removes custom ppx_deriving_yaml (updated)
- add custom ocplib-simplex (downgraded to 0.4 for Alt-Ergo 2.4.2)
parent 80dbc811
No related branches found
No related tags found
No related merge requests found
{ lib
, stdenv
, fetchFromGitHub
, findlib
, camlp-streams
, ocaml
, ocaml-compiler-libs
, perl
}:
if lib.versionOlder ocaml.version "4.02"
|| lib.versionOlder "4.15" ocaml.version
then throw "camlp5 is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "camlp5";
version = "8.00.03";
src = fetchFromGitHub {
owner = "camlp5";
repo = "camlp5";
rev = "rel${version}";
sha256 = "1fnvmaw9cland09pjx5h6w3f6fz9s23l4nbl4m9fcaa2i4dpraz6";
};
buildInputs = [ findlib camlp-streams ocaml perl ];
prefixKey = "-prefix ";
preConfigure = ''
configureFlagsArray=(--strict -libdir $out/lib/ocaml/${ocaml.version}/site-lib)
patchShebangs ./config/find_stuffversion.pl
patchShebangs ./etc/META.pl
'';
buildPhase = ''
make world.opt
make all
'';
dontStrip = true;
meta = with lib; {
description = "Preprocessor-pretty-printer for OCaml";
longDescription = ''
Camlp5 is a preprocessor and pretty-printer for OCaml programs.
It also provides parsing and printing tools.
'';
homepage = "https://camlp5.github.io/";
license = licenses.bsd3;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [
maggesi vbgl
];
};
}
{ lib, fetchurl, buildDunePackage, stdlib-shims }:
buildDunePackage rec {
pname = "ocamlgraph";
version = "2.1.0";
src = fetchurl {
url = "https://github.com/backtracking/ocamlgraph/releases/download/${version}/ocamlgraph-${version}.tbz";
sha256 = "sha256-D5YsNvklPfI5OVWvQbB0tqQmsvkqne95WyAFtX0wLWU=";
};
minimalOCamlVersion = "4.08";
useDune2 = true;
propagatedBuildInputs = [
stdlib-shims
];
meta = with lib; {
homepage = "http://ocamlgraph.lri.fr/";
downloadPage = "https://github.com/backtracking/ocamlgraph";
description = "Graph library for OCaml";
license = licenses.gpl2Oss;
maintainers = with maintainers; [ ];
};
}
{ stdenv, lib, fetchFromGitHub, autoreconfHook, ocaml, findlib }:
let
pname = "ocplib-simplex";
version = "0.4";
in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "OCamlPro-Iguernlala";
repo = pname;
rev = "v${version}";
sha256 = "09niyidrjzrj8g1qwx4wgsdf5m6cwrnzg7zsgala36jliic4di60";
};
nativeBuildInputs = [ autoreconfHook ocaml findlib ];
strictDeps = true;
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
createFindlibDestdir = true;
meta = {
description = "An OCaml library implementing a simplex algorithm, in a functional style, for solving systems of linear inequalities";
homepage = "https://github.com/OCamlPro-Iguernlala/ocplib-simplex";
inherit (ocaml.meta) platforms;
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
};
}
...@@ -3,13 +3,11 @@ let ...@@ -3,13 +3,11 @@ let
ocamlOverlay = oself: osuper: { ocamlOverlay = oself: osuper: {
# External Packages # External Packages
alt-ergo = oself.callPackage ./alt-ergo.nix {}; alt-ergo = oself.callPackage ./alt-ergo.nix {};
camlp5 = oself.callPackage ./camlp5.nix {};
combinetura = oself.callPackage ./combinetura.nix {}; combinetura = oself.callPackage ./combinetura.nix {};
headache = oself.callPackage ./headache.nix {}; headache = oself.callPackage ./headache.nix {};
mlmpfr = oself.callPackage ./mlmpfr.nix {}; mlmpfr = oself.callPackage ./mlmpfr.nix {};
ocamlgraph = oself.callPackage ./ocamlgraph.nix {}; ocplib-simplex = oself.callPackage ./ocplib-simplex.nix {};
why3 = oself.callPackage ./why3.nix {}; why3 = oself.callPackage ./why3.nix {};
ppx_deriving_yaml = oself.callPackage ./ppx_deriving_yaml.nix {};
# Helpers # Helpers
mk_tests = oself.callPackage ./mk_tests.nix {}; mk_tests = oself.callPackage ./mk_tests.nix {};
......
{ lib, buildDunePackage, fetchurl, ppxlib, alcotest, ppx_deriving, yaml }:
buildDunePackage rec {
pname = "ppx_deriving_yaml";
version = "0.2.1";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/patricoferris/ppx_deriving_yaml/releases/download/v${version}/ppx_deriving_yaml-${version}.tbz";
sha256 = "sha256-3vmay8UY7d3j96VOQ+D3oYEotzVls91F51ebXWQ/9SQ=";
};
propagatedBuildInputs = [ ppxlib ppx_deriving yaml ];
meta = {
description = "A YAML codec generator for OCaml";
homepage = "https://github.com/patricoferris/ppx_deriving_yaml";
license = lib.licenses.isc;
maintainers = [ ];
};
}
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
"homepage": "https://github.com/NixOS/nixpkgs", "homepage": "https://github.com/NixOS/nixpkgs",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f292b4964cb71f9dfbbd30dc9f511d6165cd109b", "rev": "fdd898f8f79e8d2f99ed2ab6b3751811ef683242",
"sha256": "01yzrkrb60dd2y2y3fh4939z374hf5pa92q8axfcygqlnbk3jpb4", "sha256": "05i97acjry4pk1br8glwl97gbfjafq058kblpfpd39r0qr8j6x4s",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/f292b4964cb71f9dfbbd30dc9f511d6165cd109b.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/fdd898f8f79e8d2f99ed2ab6b3751811ef683242.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"why3": { "why3": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment