Skip to content

Setting nix.package = pkgs.nix-monitored; breaks nix-shell shebang #12

Description

@leana8959

As title, setting nix.package = pkgs.nix-monitored; breaks nix-shell shebangs.

Here's a minimal script you can use to test:

#!/usr/bin/env nix-shell
#!nix-shell -i bash

echo "within nix-shell"

The script would fail is the option is enabled, showing uninformative error.

$ ./test.sh
error: undefined variable 'echo'
       at /home/leana/.dotfiles/test.sh:4:1:
            3|
            4| echo "within nix-shell"
             | ^
            5|

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions