nixpkgs/pkgs
Graham Christensen b80c9ce4a9
stdenv: Validate meta.outputsToInstall
If meta.outputsToInstall is set to include absent outputs, various
tools break including channel updates and nix-env.

    grahamc@Morbo> nix-env -i -f . -A elf-header-real
    installing 'elf-header'
    error: this derivation has bad 'meta.outputsToInstall'

This patch verifies each value in meta.outputsToInstall is a valid
output. It validates this condition only if checkMeta is true.

    grahamc@Morbo> nix-build . -A elf-header-real
    error: Package ‘elf-header’ in /home/grahamc/projects/nixpkgs/pkgs/development/libraries/elf-header/default.nix:36 has invalid meta.outputsToInstall, refusing to evaluate.

    The package elf-header has set meta.outputsToInstall to: bin

    however elf-header only has the outputs: out

    and is missing the following ouputs:

      - bin

    (use '--show-trace' to show detailed location information)

Note, now the nix-env experience is decidedly worse for users who have
checkMeta set to true:

    grahamc@Morbo> nix-env -i -f . -A elf-header-real; echo $?
    0

though since this is already an issue for unfree, broken, unsupported,
and insecure validity problems I'm not sure we should do something
different here.
2018-09-18 10:38:44 -04:00
..
applications Merge pull request #46283 from r-ryantm/auto-update/frostwire 2018-09-18 13:25:50 +01:00
build-support buildRustCrate: added some edge cases with binaries 2018-09-13 22:00:29 +02:00
common-updater
data Merge pull request #46809 from romildo/upd.elementary-xfce 2018-09-18 10:14:38 +02:00
desktops efl: 1.21.0 -> 1.21.1 2018-09-17 22:12:42 -03:00
development Merge pull request #46512 from michaelpj/imp/haskell-benchmarks 2018-09-18 14:57:03 +02:00
games Merge pull request #46385 from xeji/p/broken 2018-09-15 00:54:49 +02:00
misc greybird: remove license cc-by-nc-sa-30 (#46802) 2018-09-18 13:29:28 +02:00
os-specific linux-hardkernel: 4.14.66-147 -> 4.14.69-148 (#46791) 2018-09-17 21:31:32 +02:00
servers Merge pull request #46800 from pacien/exim-package-lmtp 2018-09-18 09:50:56 +02:00
shells zsh: 5.6.1 -> 5.6.2 2018-09-15 00:05:48 -05:00
stdenv stdenv: Validate meta.outputsToInstall 2018-09-18 10:38:44 -04:00
test pkgs/tests: Add test for LD_LIBRARY_PATH 2018-08-01 19:02:21 +03:00
tools Merge pull request #46736 from clefru/mpack 2018-09-18 10:01:00 +01:00
top-level pythonPackages.pgspecial: 1.8.0 -> 1.11.2 2018-09-18 14:00:59 +03:00