git.iko.soy/typeable/nixpkgs
on master help sign in
stdenv: provide `meta.name`
commitfac3d49e486cbca4306f991ed49687ac1230ed89 authorJan Malakhovski <oxij@oxij.org> dateWed 3 Jan 2018, 15:22 (9 years ago) parent50148f0
2 files changed+5
pkgs/stdenv/generic/check-meta.nix+1 pkgs/stdenv/generic/make-derivation.nix+4
pkgs/stdenv/generic/check-meta.nix+1
@@ -153,6 +153,7 @@ let
153153
154154 # Weirder stuff that doesn't appear in the documentation?
155155 knownVulnerabilities = listOf str;
156+ name = str;
156157 version = str;
157158 tag = str;
158159 updateWalker = bool;
pkgs/stdenv/generic/make-derivation.nix+4
@@ -201,6 +201,10 @@ rec {
201201 # passed to the builder and is not a dependency. But since we
202202 # include it in the result, it *is* available to nix-env for queries.
203203 meta = {
204+ # `name` above includes cross-compilation cruft (and is under assert),
205+ # lets have a clean always accessible version here.
206+ inherit name;
207+
204208 # If the packager hasn't specified `outputsToInstall`, choose a default,
205209 # which is the name of `p.bin or p.out or p`;
206210 # if he has specified it, it will be overridden below in `// meta`.