mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
Hack doVerbose
logic.
This commit is contained in:
parent
cc903d54ef
commit
52fc9ec547
@ -40,12 +40,20 @@ with rec {
|
||||
// cabal.arch // { "is${arch}" = true; };
|
||||
}; in e;
|
||||
};
|
||||
{ mkDerivation, stdenv, flags ? {} }:
|
||||
# The `doVerbose` here is a nasty hack. We want to be
|
||||
# able to say <package>.override { <some-generic-builder-arg> = <value };
|
||||
# however due to the wrapping here, we'd need to capture all arguments
|
||||
# and strip out `mkDerivation, stdenv, flags` and then inherit them all.
|
||||
# OR define the keys and inherit them here (which is what we did with
|
||||
# `doVerbose`. The better solution then is to try and drop those values
|
||||
# from an @args caputre instead.
|
||||
{ mkDerivation, stdenv, flags ? {}, doVerbose ? false }:
|
||||
let expr = expr0 flags;
|
||||
pname = expr.package.identifier.name;
|
||||
pversion = expr.package.identifier.version;
|
||||
in mkDerivation ({
|
||||
inherit pname;
|
||||
inherit doVerbose;
|
||||
version = pversion;
|
||||
sha256 = (import <hackage/all-cabal-hashes.nix>).${pname}.${pversion} or null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user