Skip to content

Use drv.name when pname not exists#119

Open
Avimitin wants to merge 1 commit into
nix-community:masterfrom
Avimitin:pname-fix
Open

Use drv.name when pname not exists#119
Avimitin wants to merge 1 commit into
nix-community:masterfrom
Avimitin:pname-fix

Conversation

@Avimitin

@Avimitin Avimitin commented Feb 7, 2025

Copy link
Copy Markdown

Some derivations only defines name attribute and cause bundle error like issue #115. This PR add a fallback mechanism that will use name attribute when pname is not defined.

Signed-off-by: Avimitin <dev@avimit.in>
@Avimitin

Avimitin commented Feb 7, 2025

Copy link
Copy Markdown
Author

Tested with following commands:

$ nix bundle --bundler github:Avimitin/nix-bundle/pname-fix nixpkgs#hello
$ ./hello-arx
Hello, world!

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

Successfully merging this pull request may close these issues.

1 participant