3
0
Fork 0
forked from mirrors/nixpkgs

stdenv: provide meta.name

This commit is contained in:
Jan Malakhovski 2018-01-03 15:22:35 +00:00
parent 50148f0630
commit fac3d49e48
2 changed files with 5 additions and 0 deletions

View file

@ -153,6 +153,7 @@ let
# Weirder stuff that doesn't appear in the documentation?
knownVulnerabilities = listOf str;
name = str;
version = str;
tag = str;
updateWalker = bool;

View file

@ -201,6 +201,10 @@ rec {
# passed to the builder and is not a dependency. But since we
# include it in the result, it *is* available to nix-env for queries.
meta = {
# `name` above includes cross-compilation cruft (and is under assert),
# lets have a clean always accessible version here.
inherit name;
# If the packager hasn't specified `outputsToInstall`, choose a default,
# which is the name of `p.bin or p.out or p`;
# if he has specified it, it will be overridden below in `// meta`.