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

nixpkgs.haskell.packages.ghcjs.diagrams-lib fails to build on OSX #93446

Closed
dsanson opened this issue Jul 18, 2020 · 4 comments
Closed

nixpkgs.haskell.packages.ghcjs.diagrams-lib fails to build on OSX #93446

dsanson opened this issue Jul 18, 2020 · 4 comments
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: haskell

Comments

@dsanson
Copy link

dsanson commented Jul 18, 2020

Describe the bug
The haskell package diagrams-lib fails to build on OSX, using GHCJS. The underlying problem appears to be that hfsevents fails to build.

To Reproduce
Steps to reproduce the behavior:
nix-build -A nixpkgs.haskell.packages.ghcjs.diagrams-lib

Expected behavior
A successful build.

Screenshots

Building hfsevents-0.1.6...
haddockPhase
Warning: No documentation was generated as this package does not contain a
library. Perhaps you want to use the --executables, --tests, --benchmarks or
--foreign-libraries flags.
installing
Setup: No executables and no library found. Nothing to do.

builder for '/nix/store/gxj7nwd8ci066p8nzly11ckx053l331z-hfsevents-0.1.6.drv' failed with exit code 1
cannot build derivation '/nix/store/ahbh2b2q86336rqhczgf6qjb2i97iwsq-fsnotify-0.3.0.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w8k9824i6xnghwj0zdx3xw46i7xlmz94-diagrams-lib-1.4.3.drv': 1 dependencies couldn't be built
error: build of '/nix/store/w8k9824i6xnghwj0zdx3xw46i7xlmz94-diagrams-lib-1.4.3.drv' failed

Additional context
It builds fine on the same machine using GHC.

Notify maintainers
?

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-darwin"`
 - host os: `Darwin 19.5.0, macOS 10.15.5`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.7`
 - channels(desanso): `"darwin, nixpkgs-20.09pre235020.24b55081f5f"`
 - channels(root): `"darwin, nixpkgs-20.09pre235020.24b55081f5f"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
@lf-
Copy link
Member

lf- commented Jul 18, 2020

This is also reproducible on 20.03, commit f8248ab since @dsanson was having trouble building our project that uses that as its pinned nixpkgs ;-)

@matthewbauer
Copy link
Member

I don't know why diagrams-lib would need fsnotify. I don't think there's any way to make fsnotify work properly in ghcjs.

hinotify = if pkgs.stdenv.isDarwin then self.hfsevents else super.hinotify;
probably should be hinotify = if pkgs.stdenv.hostPlatform.isDarwin then self.hfsevents else super.hinotify;

Also: you might want https://github.com/ghcjs/diagrams-ghcjs instead.

@stale
Copy link

stale bot commented Jan 30, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 30, 2021
@cdepillabout
Copy link
Member

No activity on this in a few years, I'll go ahead and close. If anyone is still stuck on this, feel free to send a PR to haskell-updates unbreaking this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: haskell
Projects
None yet
Development

No branches or pull requests

5 participants