Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh: ps: command not found on darwin #59289

Closed
sheeldotme opened this issue Apr 10, 2019 · 4 comments
Closed

sh: ps: command not found on darwin #59289

sheeldotme opened this issue Apr 10, 2019 · 4 comments

Comments

@sheeldotme
Copy link

sheeldotme commented Apr 10, 2019

Issue description

sh: ps: command not found when using CMake derivation. Possible regression of: #2561

Steps to reproduce

git clone https://github.com/sheeldotme/reproduction-nix-59289.git
cd reproduction-nix-59289
nix-build

Technical details

  • system: "x86_64-darwin"
  • host os: Darwin 18.5.0, macOS 10.14.4
  • multi-user?: no
  • sandbox: no
  • version: nix-env (Nix) 2.2.1
  • channels(sheelpatel): "nixpkgs-19.09pre174594.0c0954781e2"
  • nixpkgs: /Users/sheelpatel/.nix-defexpr/channels/nixpkgs
@matthewbauer
Copy link
Member

Don’t you just need to add darwin.ps to your buildInputs? It’s propagated by cmake if you use the normal stdenv.

@sheeldotme
Copy link
Author

sheeldotme commented Apr 10, 2019

That seems to do the trick, thank you! As cmake seems to rely on ps being available (or else it outputs that message) should it not be specified as an input to cmake?

@matthewbauer
Copy link
Member

It is: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/build-managers/cmake/default.nix#L63

But you need to use Nixpkgs stdenv for propagation to work.

@sheeldotme
Copy link
Author

That makes sense, thanks for taking the time to explain!

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

No branches or pull requests

2 participants