pkgsStatic.ocaml: migrate some logic from static adapter to ocaml

This commit is contained in:
Guillaume Girol 2021-08-14 12:00:00 +00:00
parent 9ae5ae736a
commit 6506d2ae4d
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
let
versionNoPatch = "${toString major_version}.${toString minor_version}";
version = "${versionNoPatch}.${toString patch_version}";
safeX11 = stdenv: !(stdenv.isAarch32 || stdenv.isMips);
safeX11 = stdenv: !(stdenv.isAarch32 || stdenv.isMips || stdenv.hostPlatform.isStatic);
in
{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind
@ -13,7 +13,7 @@ in
, spaceTimeSupport ? false
}:
assert useX11 -> !stdenv.isAarch32 && !stdenv.isMips;
assert useX11 -> safeX11 stdenv;
assert aflSupport -> lib.versionAtLeast version "4.05";
assert flambdaSupport -> lib.versionAtLeast version "4.03";
assert spaceTimeSupport -> lib.versionAtLeast version "4.04";

View file

@ -61,7 +61,7 @@ self: super: let
super
// {
lablgtk = null; # Currently xlibs cause infinite recursion
ocaml = super.ocaml.override { useX11 = false; };
ocaml = super.ocaml;
};
in {