diff --git a/nix/camlp5.nix b/nix/camlp5.nix index 0cccdbe19cd167432a4ebc506c72f26bdaadeb29..32622ab43f783ea7b6e2e1fd007a297bc6985414 100644 --- a/nix/camlp5.nix +++ b/nix/camlp5.nix @@ -31,12 +31,15 @@ stdenv.mkDerivation rec { prefixKey = "-prefix "; preConfigure = '' - configureFlagsArray=(--strict --libdir $out/lib/ocaml/${ocaml.version}/site-lib) + configureFlagsArray=(--strict -libdir $out/lib/ocaml/${ocaml.version}/site-lib) patchShebangs ./config/find_stuffversion.pl patchShebangs ./etc/META.pl ''; - buildFlags = [ "world.opt" ]; + buildPhase = '' + make world.opt + make all + ''; dontStrip = true; diff --git a/nix/menhirLib.nix b/nix/menhirLib.nix new file mode 100644 index 0000000000000000000000000000000000000000..34d8e09e0e5f19ad499f5779cb6c7f4a03d92b34 --- /dev/null +++ b/nix/menhirLib.nix @@ -0,0 +1,27 @@ +{ lib, fetchFromGitLab, buildDunePackage }: + +buildDunePackage rec { + pname = "menhirLib"; + version = "20211128"; + + src = fetchFromGitLab { + domain = "gitlab.inria.fr"; + owner = "fpottier"; + repo = "menhir"; + rev = version; + sha256 = "0j7ba5z7rwf85zi56fd3zfp7dvhr6xlj9amambxx57szys6dzz1g"; + }; + + meta = with lib; { + homepage = "http://pauillac.inria.fr/~fpottier/menhir/"; + description = "Runtime support library for parsers generated by Menhir"; + longDescription = '' + Menhir is a LR(1) parser generator for the Objective Caml programming + language. That is, Menhir compiles LR(1) grammar specifications down + to OCaml code. Menhir was designed and implemented by François Pottier + and Yann Régis-Gianas. + ''; + license = with licenses; [ lgpl2Only ]; + maintainers = with maintainers; [ vbgl ]; + }; +} diff --git a/nix/odoc.nix b/nix/odoc.nix deleted file mode 100644 index be33056888db525743b4d173bb93ebb2339779e3..0000000000000000000000000000000000000000 --- a/nix/odoc.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ lib -, astring -, buildDunePackage -, cmdliner -, cppo -, fetchFromGitHub -, fmt -, fpath -, ocaml -, odoc-parser -, result -, tyxml -}: - -buildDunePackage rec { - pname = "odoc"; - version = "2.1.0"; - - minimumOCamlVersion = "4.02"; - - src = fetchFromGitHub { - owner = "ocaml"; - repo = pname; - rev = version; - sha256 = "1ycb468pc6vsvqj176j99bmbkrr9saxvyn9qhpazi01abbcq5d90"; - }; - - buildInputs = [ astring cmdliner cppo fmt fpath odoc-parser result tyxml ]; - - meta = { - description = "A documentation generator for OCaml"; - license = lib.licenses.isc; - maintainers = [ lib.maintainers.vbgl ]; - homepage = "https://github.com/ocaml/odoc"; - }; -} diff --git a/nix/pkgs.nix b/nix/pkgs.nix index 91e9de7a7fdfca948c45a5efd402df94dc6d556c..8ef822c08e7f868079b8459a1b7c78a46a95d627 100644 --- a/nix/pkgs.nix +++ b/nix/pkgs.nix @@ -6,9 +6,9 @@ let camlp5 = oself.callPackage ./camlp5.nix {}; camlzip = oself.callPackage ./camlzip.nix {}; headache = oself.callPackage ./headache.nix {}; + menhirLib = oself.callPackage ./menhirLib.nix {}; mlmpfr = oself.callPackage ./mlmpfr.nix {}; ocp-indent = oself.callPackage ./ocp-indent.nix {}; - odoc = oself.callPackage ./odoc.nix {}; psmt2-frontend = oself.callPackage ./psmt2-frontend.nix {}; why3 = oself.callPackage ./why3.nix {}; diff --git a/nix/sources.json b/nix/sources.json index 05861c9fb44e456620ddfd24f1a09a622400527d..556c74ebc4b50beb822a0ce5ba2e1be40c39df68 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -29,10 +29,10 @@ "homepage": "https://github.com/NixOS/nixpkgs", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f4dfed73ee886b115a99e5b85fdfbeb683290d83", - "sha256": "1scpisl06f9mc31khj0m2q21yvx108bi7l9s0n9aq8f1w4fjprg6", + "rev": "5f326e2a403e1cebaec378e72ceaf5725983376d", + "sha256": "01lfac9zr1sx0whkd25d3jww3y3wcbyv4dck684k774p5gfx1wjy", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/f4dfed73ee886b115a99e5b85fdfbeb683290d83.tar.gz", + "url": "https://github.com/NixOS/nixpkgs/archive/5f326e2a403e1cebaec378e72ceaf5725983376d.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, "why3": {