pkgsStatic.ocaml: migrate some logic from static adapter to ocaml
This commit is contained in:
parent
9ae5ae736a
commit
6506d2ae4d
@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
versionNoPatch = "${toString major_version}.${toString minor_version}";
|
versionNoPatch = "${toString major_version}.${toString minor_version}";
|
||||||
version = "${versionNoPatch}.${toString patch_version}";
|
version = "${versionNoPatch}.${toString patch_version}";
|
||||||
safeX11 = stdenv: !(stdenv.isAarch32 || stdenv.isMips);
|
safeX11 = stdenv: !(stdenv.isAarch32 || stdenv.isMips || stdenv.hostPlatform.isStatic);
|
||||||
in
|
in
|
||||||
|
|
||||||
{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind
|
{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind
|
||||||
@ -13,7 +13,7 @@ in
|
|||||||
, spaceTimeSupport ? false
|
, spaceTimeSupport ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert useX11 -> !stdenv.isAarch32 && !stdenv.isMips;
|
assert useX11 -> safeX11 stdenv;
|
||||||
assert aflSupport -> lib.versionAtLeast version "4.05";
|
assert aflSupport -> lib.versionAtLeast version "4.05";
|
||||||
assert flambdaSupport -> lib.versionAtLeast version "4.03";
|
assert flambdaSupport -> lib.versionAtLeast version "4.03";
|
||||||
assert spaceTimeSupport -> lib.versionAtLeast version "4.04";
|
assert spaceTimeSupport -> lib.versionAtLeast version "4.04";
|
||||||
|
@ -61,7 +61,7 @@ self: super: let
|
|||||||
super
|
super
|
||||||
// {
|
// {
|
||||||
lablgtk = null; # Currently xlibs cause infinite recursion
|
lablgtk = null; # Currently xlibs cause infinite recursion
|
||||||
ocaml = super.ocaml.override { useX11 = false; };
|
ocaml = super.ocaml;
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
Loading…
Reference in New Issue
Block a user