-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkDerivation error message not helpful when version
isn't present ("error: derivation name missing")
#113520
Labels
0.kind: bug
Something is broken
Comments
10 tasks
I marked this as stale due to inactivity. → More info |
stale
bot
added
the
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
label
Aug 17, 2021
@Stale still relevant to me |
stale
bot
removed
the
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
label
Nov 25, 2021
stale
bot
added
the
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
label
Jun 19, 2022
I encountered the same error today |
stale
bot
removed
the
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
label
Jan 31, 2023
Same here |
This issue still persists. |
Can confirm it is still an issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Removed the
version
attribute frommkDerivation
when hacking on a package, mistookpname
forname
, then tried to build it thinking all's fine when I received theerror: derivation name missing
.Steps to reproduce the behavior:
Expected behavior
An error message that points out that
mkDerivation
's input attribute set has to have either aname
attribute, or apname
and aversion
attribute (as per RFC-0035). The Nixpkgs manual entry is clear about this, but I though onlyname
is present, and I missed thep
so it took a while to track it down...Additional context
The error message is coming from
derivation
but I understand that this should be handled probably in pkgs/stdenv/generic/make-derivation.nix.Metadata
"x86_64-linux"
Linux 5.4.89, NixOS, 20.09.2624.1eff582e7ea (Nightingale)
yes
yes
nix-env (Nix) 2.3.10
"nixos-20.09.2624.1eff582e7ea"
"nixos-20.09.3009.8e78c2cfbae"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: