Don't build separate bin output for alex.

It has files in /usr/share which reference the bin output.
This commit is contained in:
Nicholas Clarke 2017-08-15 14:46:00 +01:00
parent cd24744506
commit a1d78fa5bc
2 changed files with 5 additions and 0 deletions

View file

@ -489,4 +489,7 @@ self: super: builtins.intersectAttrs super {
# Without this override, the builds lacks pkg-config.
opencv-extra = addPkgconfigDepend super.opencv-extra (pkgs.opencv3.override { enableContrib = true; });
# Alex has some weird files in /usr/share that create a cyclic ref with
# its bin dir.
alex = hasNoBinOutput super.alex;
}

View file

@ -142,6 +142,8 @@ rec {
overrideSrc = drv: { src, version ? drv.version }:
overrideCabal drv (_: { inherit src version; editedCabalFile = null; });
hasNoBinOutput = drv: overrideCabal drv (drv: { enableSeparateBinOutput = false; });
installOutputs = drv: outputs: overrideCabal drv
(drv: { outputsToInstall = outputs; });
}