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

Nix Flake develop broken for Mac #1247

Closed
peterbecich opened this issue Aug 26, 2023 · 3 comments
Closed

Nix Flake develop broken for Mac #1247

peterbecich opened this issue Aug 26, 2023 · 3 comments

Comments

@peterbecich
Copy link
Member

We need to figure out why nix develop on Mac pulls in Linux dependencies.

hackage-server/flake.nix

Lines 34 to 57 in f52a15d

tools = hp: {
# Setting to null should remove this tool from defaults.
haskell-language-server = null;
inherit (pkgs)
cabal-install
ghc
# https://github.com/haskell/hackage-server/pull/1219#issuecomment-1597140858
# glibc
# icu67
# zlib
openssl
cryptodev
pkg-config
brotli
gd
libpng
libjpeg
fontconfig
freetype
expat
;
};

Error in nix develop in Mac:
#1244 (comment)


           70|
           71| assert stdenv.isLinux;
             | ^
           72|

The error can also be seen in nix flake check on the Mac GitHub Action:
https://github.com/haskell/hackage-server/actions/runs/5982632728/job/16231916472

nix flake check checks nix develop: srid/haskell-flake#172 (comment)

@peterbecich
Copy link
Member Author

We should also check --show-trace: srid/haskell-flake#172 (comment)

peterbecich added a commit to peterbecich/hackage-server that referenced this issue Aug 26, 2023
peterbecich added a commit to peterbecich/hackage-server that referenced this issue Aug 26, 2023
Squashed commit of the following:

commit ab42f6c
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 23:25:03 2023 -0700

    `nix flake check` should succeed

commit 112b5d9
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 23:12:08 2023 -0700

    remove other dev shell dependencies

commit c24534c
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 23:00:51 2023 -0700

    remove pkg-config

commit bf4c400
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 22:50:44 2023 -0700

    try to fix `nix develop` on Mac

    haskell#1247
peterbecich added a commit to peterbecich/hackage-server that referenced this issue Aug 26, 2023
Squashed commit of the following:

commit ab42f6c
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 23:25:03 2023 -0700

    `nix flake check` should succeed

commit 112b5d9
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 23:12:08 2023 -0700

    remove other dev shell dependencies

commit c24534c
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 23:00:51 2023 -0700

    remove pkg-config

commit bf4c400
Author: Peter Becich <peterbecich@gmail.com>
Date:   Fri Aug 25 22:50:44 2023 -0700

    try to fix `nix develop` on Mac

    haskell#1247
@peterbecich
Copy link
Member Author

Should be fixed, @andreasabel , please try nix develop again on your Mac

@andreasabel
Copy link
Member

Should be ok. I interrupted it though as it was downloading GBs, and I got a warning that my harddrive was running full, so I cured it with sudo rm -rf /nix/store.

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