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

Problem: extractPath doesn't work on Nix/Darwin #100

Closed
clacke opened this issue Mar 31, 2018 · 1 comment
Closed

Problem: extractPath doesn't work on Nix/Darwin #100

clacke opened this issue Mar 31, 2018 · 1 comment

Comments

@clacke
Copy link
Member

clacke commented Mar 31, 2018

$ nix-build -A pkgs.fractalide
error: invalid regular expression '(|.*/)([^/]*)', at /Users/cw/src/git/fractalide/fractalide/pkgs/fractalide.nix:29:27

Works on Nix/Linux. Are they using different regex libraries? Both are Nix 2.0pre.

clacke added a commit to clacke/racket2nix-clacke that referenced this issue Mar 31, 2018
The regular expression is valid on Nix/Linux but not on Nix/Darwin.

Solution: Use builtins.split instead.

Closes fractalide#100
@clacke
Copy link
Member Author

clacke commented Mar 31, 2018

See NixOS/nix#1537 .

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

1 participant