mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
ocamlPackages.ocplib-endian: fix for OCaml >= 5
This commit is contained in:
parent
685b423e45
commit
3df03f233a
@ -1,4 +1,4 @@
|
||||
{ lib, buildDunePackage, fetchFromGitHub, cppo }:
|
||||
{ lib, buildDunePackage, fetchFromGitHub, ocaml, cppo }:
|
||||
|
||||
buildDunePackage rec {
|
||||
version = "1.2";
|
||||
@ -11,6 +11,11 @@ buildDunePackage rec {
|
||||
sha256 = "sha256-THTlhOfXAPaqTt1qBkht+D67bw6M175QLvXoUMgjks4=";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "5.0") ''
|
||||
substituteInPlace src/dune \
|
||||
--replace "libraries ocplib_endian bigarray" "libraries ocplib_endian"
|
||||
'';
|
||||
|
||||
minimalOCamlVersion = "4.03";
|
||||
|
||||
nativeBuildInputs = [ cppo ];
|
||||
|
Loading…
Reference in New Issue
Block a user