nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.52k stars 74 forks source link

aarch64-darwin build cycle #343

Closed rignet-bicteg closed 2 years ago

rignet-bicteg commented 2 years ago

I'm runnning nix 2.4 on macOS Monterey, I run nix-env -iA nixpkgs.niv and I get the following error:

Installing library in /nix/store/ljqi6swgq4vckrigkqpjc1c6wrdf53gm-niv-0.2.19/lib/ghc-8.10.7/aarch64-osx-ghc-8.10.7/niv-0.2.19-AtMpwLNrtqAEZxlNAy7E8l
Installing executable niv in /nix/store/99vz7gxkd70dxaxz8jz55p8l83x93k0m-niv-0.2.19-bin/bin
Warning: The directory
/nix/store/99vz7gxkd70dxaxz8jz55p8l83x93k0m-niv-0.2.19-bin/bin is not in the
system search path.
/nix/store/wn9v5lcin8lsfzhpvfp6pypb78vzi7b0-cctools-binutils-darwin-949.0.1/bin/strip: changes being made to the file will invalidate the code signature in: /nix/store/99vz7gxkd70dxaxz8jz55p8l83x93k0m-niv-0.2.19-bin/bin/niv
Registering library for niv-0.2.19..
post-installation fixup
strip is /nix/store/hi81iavwbigd3gssp3mw0l90vap8p0ji-clang-wrapper-11.1.0/bin/strip
stripping (with command strip and flags -S) in /nix/store/ljqi6swgq4vckrigkqpjc1c6wrdf53gm-niv-0.2.19/lib
patching script interpreter paths in /nix/store/ljqi6swgq4vckrigkqpjc1c6wrdf53gm-niv-0.2.19
strip is /nix/store/hi81iavwbigd3gssp3mw0l90vap8p0ji-clang-wrapper-11.1.0/bin/strip
patching script interpreter paths in /nix/store/7hjab2q9673adkf2xmyym53pkrk4bn5y-niv-0.2.19-data
strip is /nix/store/hi81iavwbigd3gssp3mw0l90vap8p0ji-clang-wrapper-11.1.0/bin/strip
stripping (with command strip and flags -S) in /nix/store/99vz7gxkd70dxaxz8jz55p8l83x93k0m-niv-0.2.19-bin/bin
patching script interpreter paths in /nix/store/99vz7gxkd70dxaxz8jz55p8l83x93k0m-niv-0.2.19-bin
error: cycle detected in build of '/nix/store/shp29br5046r5ih9z5hfxv5aynhzkxbk-niv-0.2.19.drv' in the references of output 'bin' from output 'out'

Any idea if I can do a quick fix?

adrian-gierakowski commented 2 years ago

See https://github.com/nmattia/niv/issues/332#issuecomment-958449218

nmattia commented 2 years ago

Closing as duplicate of #332 (thanks @adrian-gierakowski !)