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

Create a script that allows specifying the binary to package #3

Closed
ralismark opened this issue Aug 30, 2022 · 4 comments
Closed

Create a script that allows specifying the binary to package #3

ralismark opened this issue Aug 30, 2022 · 4 comments
Assignees

Comments

@ralismark
Copy link
Owner

See #2. Ideally something like ./nix-bundle.sh from https://github.com/matthewbauer/nix-bundle/

@ralismark
Copy link
Owner Author

nix eval --raw --impure --apply 'drv: (import ./.).outputs.mkappimage.${builtins.currentSystem} { drv = drv; entrypoint = "${drv}/bin/hello"; name = drv.name; }' nixpkgs#hello is like halfway there! Still needs:

  • Somehow actually instantiate that derivation
  • Pass in the binary path
  • (minor) Put mkappimage in lib

@ralismark ralismark changed the title Script that allows specifying the binary to package Create a script that allows specifying the binary to package Jan 28, 2023
@ralismark ralismark removed the TODO label Jan 28, 2023
@ralismark
Copy link
Owner Author

I added the ./bundle script, which should do exactly this.

@baduhai
Copy link

baduhai commented Jul 7, 2023

Thanks for the script. This is a pretty good workaround. I wish this was supported in the nix bundle spec, though.

@Cloudef
Copy link

Cloudef commented Jan 12, 2024

Could this script be exposed by the flake as a app so one could nix run github:ralismark/nix-appimage#bundle-package or something 🙂

Was surprised when my package was not packaged but rather the build script 😆

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

3 participants