@@ -40,12 +40,20 @@ with rec {
40 // cabal.arch // { "is${arch}" = true; };
40 // cabal.arch // { "is${arch}" = true; };
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.
43−{ mkDerivation, stdenv, flags ? {} }:
50+{ mkDerivation, stdenv, flags ? {}, doVerbose ? false }:
44let expr = expr0 flags;
51let expr = expr0 flags;
45 pname = expr.package.identifier.name;
52 pname = expr.package.identifier.name;
46 pversion = expr.package.identifier.version;
53 pversion = expr.package.identifier.version;
47in mkDerivation ({
54in mkDerivation ({
48 inherit pname;
55 inherit pname;
49 version = pversion;
57 version = pversion;
50 sha256 = (import <hackage/all-cabal-hashes.nix>).${pname}.${pversion} or null;
58 sha256 = (import <hackage/all-cabal-hashes.nix>).${pname}.${pversion} or null;