stdenv: hide name
under check-meta
assert
This is a temporary workaround to make `nix-env -qa` and `nix search` ignore broken packages as they they did before this patchset. This patch should be reverted after `nix` gets a proper fix for this. See NixOS/nix#1771.
This commit is contained in:
parent
eaee2a1199
commit
50148f0630
1 changed files with 4 additions and 1 deletions
|
@ -134,9 +134,12 @@ rec {
|
||||||
(lib.concatLists propagatedDependencies));
|
(lib.concatLists propagatedDependencies));
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = name + lib.optionalString
|
# A hack to make `nix-env -qa` and `nix search` ignore broken packages.
|
||||||
|
# TODO(@oxij): remove this assert when something like NixOS/nix#1771 gets merged into nix.
|
||||||
|
name = assert validity.handled; name + lib.optionalString
|
||||||
(stdenv.hostPlatform != stdenv.buildPlatform)
|
(stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
("-" + stdenv.hostPlatform.config);
|
("-" + stdenv.hostPlatform.config);
|
||||||
|
|
||||||
builder = attrs.realBuilder or stdenv.shell;
|
builder = attrs.realBuilder or stdenv.shell;
|
||||||
args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
|
args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
|
||||||
inherit stdenv;
|
inherit stdenv;
|
||||||
|
|
Loading…
Reference in a new issue