nixpkgs/pkgs
Jan Malakhovski d1d5ecb3bf stdenv: perform checks only when evaluating .drv and .out
This pushes check-meta evaluation to derivation evaluation step, leaving all other
attributes accessible.

Before this commit:

> $ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate --eval --strict ./default.nix -A xen --argstr system aarch64-linux
> Package ‘xen-4.5.5’ in pkgs/applications/virtualization/xen/generic.nix:226 is not supported on ‘aarch64-linux’, refusing to evaluate.

as expected

> $ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate --eval --strict ./default.nix -A xen.name --argstr system aarch64-linux
> Package ‘xen-4.5.5’ in pkgs/applications/virtualization/xen/generic.nix:226 is not supported on ‘aarch64-linux’, refusing to evaluate.

> $ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate --eval --strict ./default.nix -A xen.meta.description --argstr system aarch64-linux
> Package ‘xen-4.5.5’ in pkgs/applications/virtualization/xen/generic.nix:226 is not supported on ‘aarch64-linux’, refusing to evaluate.

which is unfortunate since its impossible to use packages in autogenerated
documentation on all platforms.

After this commit:

> $ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate --eval --strict ./default.nix -A xen --argstr system aarch64-linux

still fails

> $ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate --eval --strict ./default.nix -A xen.name --argstr system aarch64-linux
> "xen-4.5.5"

> $ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate --eval --strict ./default.nix -A xen.meta.description --argstr system aarch64-linux
> "Xen hypervisor and related components (vanilla)"
2018-01-03 12:20:25 +00:00
..
applications Merge pull request #33314 from jtojnar/gnome-mplayer 2018-01-03 11:10:29 +01:00
build-support lxterminal: patch m4 to respect XML_CATALOG_FILES 2018-01-02 00:58:20 -07:00
common-updater update-source-version: Name part of name can contain dashes 2017-12-26 20:02:01 +02:00
data Merge pull request #26805 from obsidiansystems/cross-elegant 2017-12-30 22:58:02 -05:00
desktops Merge remote-tracking branch 'upstream/master' into HEAD 2018-01-01 15:09:55 +01:00
development Merge pull request #33358 from obsidiansystems/cross-haskell-samehash 2018-01-03 11:49:49 +01:00
games Merge remote-tracking branch 'upstream/staging' into HEAD 2018-01-02 19:10:45 +01:00
misc sc-controller: init at 0.4.0.1 2018-01-03 03:27:34 +00:00
os-specific Merge pull request #33358 from obsidiansystems/cross-haskell-samehash 2018-01-03 11:49:49 +01:00
servers Merge pull request #33300 from adisbladis/postgresql 2018-01-03 05:44:45 +00:00
shells Merge pull request #26805 from obsidiansystems/cross-elegant 2017-12-30 22:58:02 -05:00
stdenv stdenv: perform checks only when evaluating .drv and .out 2018-01-03 12:20:25 +00:00
test Add clang multilib variants (x64_64-only, 64/32bit), basic multilib tests 2017-12-05 07:17:14 -06:00
tools Merge pull request #33339 from romildo/upd.pnmixer 2018-01-02 21:40:21 +01:00
top-level Merge pull request #33314 from jtojnar/gnome-mplayer 2018-01-03 11:10:29 +01:00