on iko/ghcjs-patch-master help sign in
Allow to override components (#572)

Not being able to override components values once they have been setup and exclusively relying on the module system to do its thing, can be quite constraining. This change allows us to override components.

commit5813be54db841df0e756e5cfb436e7f9abbddbaf authorMoritz Angermann <moritz.angermann@gmail.com> dateFri 1 May 2020, 18:00 (7 years ago) parent49cbd34
1 file changed+2−1
builder/comp-builder.nix+2−1
builder/comp-builder.nix+2−1
@@ -1,5 +1,6 @@
11{ stdenv, buildPackages, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, ghcForComponent, hsPkgs, runCommand, libffi, gmp, nodejs }:
22
3+lib.makeOverridable (
34{ componentId
45, component
56, package
@@ -359,4 +360,4 @@ stdenv.mkDerivation ({
359360 preInstall postInstall preHaddock postHaddock;
360361}
361362// lib.optionalAttrs (stdenv.buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${buildPackages.glibcLocales}/lib/locale/locale-archive"; }
362−))
363+)))