Skip to content

nix-build --run-env broken? #79

Closed
Closed

Description

@bluescreen303

This is what I get at the moment.

$ nix-build --run-env '<nixpkgs>' -A gimp
warning: you did not specify `--add-root'; the result might be removed by the garbage collector
/nix/store/b48470bj4b8d4x6z5rr62924n30cwsiq-stdenv/setup:93: command not found: shopt
exitHandler:4: command not found: closeNest
runHook:2: bad option: -t
runHook:6: bad substitution

Activity

  1. edolstra commented on Aug 1, 2012

    @edolstra
    Member

    Can't reproduce:

    [eelco@mandark:~/Dev/nixpkgs]$ nix-build --run-env '<nixpkgs>' -A gimp
    warning: you did not specify `--add-root'; the result might be removed by the garbage collector
    
    [eelco@mandark:~/Dev/nixpkgs]$ echo $buildNativeInputs 
    /nix/store/w6bwp1sq5w24n3vnmx0yifiqdq696fyf-pkg-config-0.23 /nix/store/xcbxj8qn1chi7ly5wfhmw02fch3dw7hi-gtk+-2.24.10 ...
    
  2. edolstra commented on Aug 1, 2012

    @edolstra
    Member

    Nix-build respects your $SHELL setting, so make sure it's bash.

  3. bluescreen303 commented on Aug 1, 2012

    @bluescreen303
    ContributorAuthor

    cool, thanks.
    I tried with bash before (as I recognized shopt as a bash option), but that didn't set SHELL.
    manually setting SHELL does the trick.

  4. added a commit that references this issue on Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions