Skip to content
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

Unable to bundle drv with name set instead of pname #115

Open
kgtkr opened this issue Oct 23, 2024 · 1 comment
Open

Unable to bundle drv with name set instead of pname #115

kgtkr opened this issue Oct 23, 2024 · 1 comment

Comments

@kgtkr
Copy link

kgtkr commented Oct 23, 2024

my-package is a drv with name set instead of pname (e.g. a package created with writeShellApplication)

$ nix bundle .#my-package
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating the derivation attribute 'name'

         at /nix/store/60sn02zhawl3kwn0r515zff3h6hg6ydz-source/pkgs/stdenv/generic/make-derivation.nix:336:7:

          335|     // (optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          336|       name =
             |       ^
          337|         let

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'pname' missing

       at /nix/store/rg7wfg8l79ashynpxywci4jaz92315w4-source/default.nix:18:45:

           17|     stdenv.mkDerivation {
           18|       name = if drvToBundle != null then "${drvToBundle.pname}-arx" else "arx";
             |                                             ^
           19|       passthru = {
       Did you mean name?
@michaelvanstraten
Copy link

Same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants