diff options
author | Graham Christensen <graham@grahamc.com> | 2018-09-18 09:30:59 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-09-18 10:38:44 -0400 |
commit | b80c9ce4a962661f5589092f618ca8ae70f56a1e (patch) | |
tree | eb61d0c73fc46d2340dc2ed55366d92613956d51 /pkgs/development/libraries/elf-header/default.nix | |
parent | 0a308534615dc3cbb37f3c9400323a9089083343 (diff) | |
download | nixpkgs-b80c9ce4a962661f5589092f618ca8ae70f56a1e.tar nixpkgs-b80c9ce4a962661f5589092f618ca8ae70f56a1e.tar.gz nixpkgs-b80c9ce4a962661f5589092f618ca8ae70f56a1e.tar.bz2 nixpkgs-b80c9ce4a962661f5589092f618ca8ae70f56a1e.tar.lz nixpkgs-b80c9ce4a962661f5589092f618ca8ae70f56a1e.tar.xz nixpkgs-b80c9ce4a962661f5589092f618ca8ae70f56a1e.tar.zst nixpkgs-b80c9ce4a962661f5589092f618ca8ae70f56a1e.zip |
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.
Diffstat (limited to 'pkgs/development/libraries/elf-header/default.nix')
0 files changed, 0 insertions, 0 deletions