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

Bundling local derivations #2

Closed
baduhai opened this issue Aug 25, 2022 · 1 comment
Closed

Bundling local derivations #2

baduhai opened this issue Aug 25, 2022 · 1 comment

Comments

@baduhai
Copy link

baduhai commented Aug 25, 2022

How would I go about bundling a derivation that I've written? I've tried the obvious nix bundle --bundler github:ralismark/nix-appimage -f default.nix, but that doesn't seem to work.

@ralismark
Copy link
Owner

ralismark commented Aug 30, 2022

Ah, seems like it'd be hitting an error with the main program detection. That syntax should work otherwise. For arbitrary derivations, meta.mainProgram gets used, falling back to /bin/ if that doesn't exist. The default bundler does this too, but just produces an invalid bundle instead.

Ideally there'll be a standard way of overriding the program name (e.g. for nixpkgs#mesa-demos, which has multiple binaries), but until then I can add a script that specifies the binary to run.

see:

@ralismark ralismark closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2023
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