mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
pkgsStatic.ocaml: migrate some logic from static adapter to ocaml
This commit is contained in:
parent
9ae5ae736a
commit
6506d2ae4d
2 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue