Skip to content

feat: improve NixOS compatibility with portable shebang#5

Open
lessuselesss wants to merge 1 commit intoericbuess:devfrom
lessuselesss:fix/nixos-compatibility
Open

feat: improve NixOS compatibility with portable shebang#5
lessuselesss wants to merge 1 commit intoericbuess:devfrom
lessuselesss:fix/nixos-compatibility

Conversation

@lessuselesss
Copy link
Copy Markdown

Summary

This PR improves cross-platform compatibility, particularly for NixOS users, by using portable shebang declarations in shell scripts.

Changes Made

  • Changed #!/bin/bash to #!/usr/bin/env bash in all shell scripts:
    • install.sh
    • scripts/find_python.sh
    • scripts/run_python.sh
    • uninstall.sh

Why This Matters

On NixOS and some other distributions, bash is not located at /bin/bash but rather in the Nix store or other locations. Using #!/usr/bin/env bash allows the system to find bash in the PATH, making the scripts work out of the box on these systems.

Testing

  • Scripts continue to work on traditional Linux distributions
  • Now work correctly on NixOS without requiring user modifications
  • No functional changes to script behavior

This is a small but important change that makes the project more accessible to users on alternative distributions.

Related Issues

This addresses the common issue where PROJECT_INDEX installation fails on NixOS due to hardcoded bash paths.

- Change #!/bin/bash to #!/usr/bin/env bash in all shell scripts
- This allows scripts to work on NixOS and other distributions where bash is not at /bin/bash

Files modified:
- install.sh
- scripts/find_python.sh  
- scripts/run_python.sh
- uninstall.sh
@lessuselesss lessuselesss changed the base branch from main to dev September 1, 2025 03:34
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.

2 participants