Skip to content

Command 'security' missing on OSX in a pure shell #705

Closed

Description

@YPares

@copumpkin When trying to build on OSX in a pure shell a (Haskell) program that launches a sub-process, I get the following error:

security: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)

This tells me the security command is missing. But when building the same program in a non-pure shell it works alright, and shows that it indeed calls the /usr/bin/security executable, either to find or read certificates.

Sorry if I'm being too vague but, does this ring any bell? Do you think it is normal, and if so, which OSX-specific package(s) should I add so that security might be found?

Activity

  1. copumpkin commented on Nov 18, 2015

    @copumpkin
    Member

    This probably belongs in nixpkgs, and is related to NixOS/nixpkgs#3629

    I don't know what the current status of anything is, but the basic point is that you need to depend on it explicitly, and /usr/bin/security shouldn't be accessible by design.

  2. YPares commented on Nov 18, 2015

    @YPares
    Author

    @copumpkin Thanks. Indeed in a nix-shell --pure -p darwin.security_toolit works.
    However I'm getting a warning due to GHC now:
    Warning: unable to set locale to UTF-8 encoding; GHC may fail with 'invalid character'
    I remember it caused me some trouble on Linux which was fixed by adding glibcLocales to the buildInputs. But this packages doesn't exist on OSX, is there an equivalent?

  3. copumpkin commented on Nov 18, 2015

    @copumpkin
    Member

    I don't really know, sorry. Perhaps ask in ##nix-darwin on freenode IRC, or on the nixpkgs issue tracker? I don't think anyone really looks at this issue tracker, and I'm unplugged enough from the darwin work these days that I don't know much about the current state of anything on it.

  4. pikajude commented on Dec 15, 2015

    @pikajude
    Contributor

    This bug should not happen on pure-darwin since we build security-tool ourselves. What packages are in your environment, and what commit SHA256 is your nixpkgs on?

  5. peti commented on Apr 21, 2018

    @peti
    Member

    This is a Nixpkgs issue, really.

  6. added a commit that references this issue on Jan 1, 2024
  7. added a commit that references this issue on Mar 8, 2026
    820c9bd
  8. added a commit that references this issue on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions