diff --git a/CHANGELOG.md b/CHANGELOG.md index 81bf85796..7595f6879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). - Define `rules_nixpkgs_dependencies` in `//nixpkgs:repositories.bzl`. - Define `nixpkgs_go_configure` in `//nixpkgs:toolchains/go.bzl` +- `nixpkgs_package` now has a `quiet` attribute. + +### Changed + +- Show Nix output by default, like in releases prior to v0.6. ## [0.6.0] - 2019-11-14 diff --git a/nixpkgs/nixpkgs.bzl b/nixpkgs/nixpkgs.bzl index 6e0590d23..1280df5fd 100644 --- a/nixpkgs/nixpkgs.bzl +++ b/nixpkgs/nixpkgs.bzl @@ -162,6 +162,7 @@ def _nixpkgs_package_impl(repository_ctx): failure_message = "Cannot build Nix attribute '{}'.".format( repository_ctx.attr.attribute_path, ), + quiet = repository_ctx.attr.quiet, timeout = timeout, ) output_path = exec_result.stdout.splitlines()[-1] @@ -201,6 +202,7 @@ _nixpkgs_package = repository_rule( "build_file": attr.label(), "build_file_content": attr.string(), "nixopts": attr.string_list(), + "quiet": attr.bool(), "fail_not_supported": attr.bool(default = True, doc = """ If set to True (default) this rule will fail on platforms which do not support Nix (e.g. Windows). If set to False calling this rule will succeed but no output will be generated. """),