Skip to content

Strange issue on a Mac #10

Open
Open

Description

@johnae

I'm testing this on a Mac (nix flakes enabled), and I'm getting this output:

% nix develop
mktemp: illegal option -- -
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix
### 🔨 Welcome to devshell ####
[commands]
devshell-menu - print this menu
devshell-root - change directory to root
[devshell]$ 

I've been unable to find any mention of mktemp in this repo, however it seems to be related to mkDevShell since I can use mkShell from nixpkgs without ever seeing the above output. On NixOS everything is fine.

Activity

  1. johnae commented on Sep 10, 2020

    @johnae
    ContributorAuthor

    Also, the error above doesn't seem to affect usage as far as I've been able to determine anyway. But it sure doesn't look good. I'm testing this on MacOS Catalina, latest version 10.15.6.

  2. johnae commented on Sep 10, 2020

    @johnae
    ContributorAuthor

    So, clearly something is calling the mktemp that comes with MacOS. Could even be somewhere in nixpkgs. By doing this:

    nix profile install nixpkgs#mktemp
    

    I no longer have this problem. Would be interesting to find where this happens since I believe it should call the mktemp from nixpkgs.

  3. cem2ran commented on Sep 24, 2020

    @cem2ran

    I'm seeing the same issue on macOS 1.15.5 - nix (Nix) 3.0pre20200804_ed52cf6

  4. zimbatm commented on Oct 11, 2020

    @zimbatm
    Member
  5. added
    bug
    on Jan 26, 2021
  6. mistydemeo commented on Apr 20, 2023

    @mistydemeo

    It looks like this was fixed upstream: NixOS/nix#4491

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions