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

init compatibility with: nix bundle, nix run, lib.getExe #306

Merged
merged 1 commit into from
Apr 15, 2024

Commits on Apr 15, 2024

  1. init compatibility with: nix bundle, nix run, lib.getExe

    This makes all devshells compatible with `lib.getExe`, `nix run`and `nix bundle` by setting `meta.mainProgram` and creating an executable under `$out/bin/${meta.mainProgram}`
    
    Also remove the now unnecessary flakeApp workaround from the docs and replace it with updated instructions.
    
    My main motivation behind this is to create portable executable devshells via `nix bundle`.
    For example, to bundle the devShell of devshell itself into a static executable:
    
    ```sh
    nix bundle --bundler github:DavHau/nix-portable github:numtide/devshell#devShells.x86_64-linux.default
    ```
    DavHau committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a5dfbc0 View commit details
    Browse the repository at this point in the history