@@ -40,12 +40,20 @@ with rec {
4040 // cabal.arch // { "is${arch}" = true; };
4141 }; in e;
4242};
43−{ mkDerivation, stdenv, flags ? {} }:
43+# The `doVerbose` here is a nasty hack. We want to be
44+# able to say <package>.override { <some-generic-builder-arg> = <value };
45+# however due to the wrapping here, we'd need to capture all arguments
46+# and strip out `mkDerivation, stdenv, flags` and then inherit them all.
47+# OR define the keys and inherit them here (which is what we did with
48+# `doVerbose`. The better solution then is to try and drop those values
49+# from an @args caputre instead.
50+{ mkDerivation, stdenv, flags ? {}, doVerbose ? false }:
4451let expr = expr0 flags;
4552 pname = expr.package.identifier.name;
4653 pversion = expr.package.identifier.version;
4754in mkDerivation ({
4855 inherit pname;
56+ inherit doVerbose;
4957 version = pversion;
5058 sha256 = (import <hackage/all-cabal-hashes.nix>).${pname}.${pversion} or null;
5159