Closed knl closed 3 years ago
~I'm not able to reproduce on x86_64-linux:~ Nevermind, nix-env
seems to be pulling some other output.
@knl does that solve your issue?
Seems so.
There was another issue at play -- darwin builds. When I checked out the two week old nixpkgs master branch, I got this:
nix-store --query -R $(nix-build -A niv)
these paths will be fetched (2.32 MiB download, 10.85 MiB unpacked):
/nix/store/2d9pv0sq9pvma8nqpcwc3miwp44b0g95-libiconv-osx-10.12.6
/nix/store/akxyah7f2yf1029dnis92framf62fs7c-libffi-3.3
/nix/store/jwarmyyi1p36rxf5aq7digadfs0f0f9z-niv-0.2.18-bin
/nix/store/z1pjlkm93fcc87xf14sdkjmkzcvx0qv7-gmp-6.2.1
copying path '/nix/store/akxyah7f2yf1029dnis92framf62fs7c-libffi-3.3' from 'https://cache.nixos.org'...
copying path '/nix/store/2d9pv0sq9pvma8nqpcwc3miwp44b0g95-libiconv-osx-10.12.6' from 'https://cache.nixos.org'...
copying path '/nix/store/z1pjlkm93fcc87xf14sdkjmkzcvx0qv7-gmp-6.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/jwarmyyi1p36rxf5aq7digadfs0f0f9z-niv-0.2.18-bin' from 'https://cache.nixos.org'...
/nix/store/084qyzx135na3iiqf0hm7ffzv1s94dfp-openssl-1.1.1h
/nix/store/2wkq38n95pfcz9ygf30s52rmzi3q9w24-nghttp2-1.41.0-lib
/nix/store/8r6qgv5ihwkwwa4r4ydjjb0h3hk4viwi-bash-4.4-p23
/nix/store/p0946l8cx9jkfm7986mrzgsfxbbw3inb-Libsystem-osx-10.12.6
/nix/store/6v17p59kc0g144qq6llyv4w873axc89w-libkrb5-1.18
/nix/store/8jh0vv8j9l5rrxwdray1b5hzvms2r2f7-zlib-1.2.11
/nix/store/nhn56y54cjxz2ng3lbxx91w3f1gspwin-libssh2-1.9.0
/nix/store/0ajmkksxkhm7q5sir18nsr8z6pd4w2ma-curl-7.73.0
/nix/store/cbkabcjrs98cyj72ch8m6qq6xy67g8zz-libc++abi-7.1.0
/nix/store/0q2f9x0f28a3c2325mdhj2kn2qzm888k-libc++-7.1.0
/nix/store/2d9pv0sq9pvma8nqpcwc3miwp44b0g95-libiconv-osx-10.12.6
/nix/store/akxyah7f2yf1029dnis92framf62fs7c-libffi-3.3
/nix/store/i6546mzqq2kyvzs41q6p2cjhsfnjqaqw-libxml2-2.9.10
/nix/store/kbv0gm6kzsa49gd7hs1kyfb87pcgnxxh-ICU-osx-10.10.5
/nix/store/ia2qh5ady5rjxsmxw4pvcin2136rfzlc-swift-corefoundation
/nix/store/z1pjlkm93fcc87xf14sdkjmkzcvx0qv7-gmp-6.2.1
/nix/store/jwarmyyi1p36rxf5aq7digadfs0f0f9z-niv-0.2.18-bin
Trying the above command on a two day old master branch resulted again in Nix pulling 3GB of dependencies, as nothing was built upstream. That is, darwin builders are lagging behind the linux builders on Hydra, and I just forgot about that.
Thanks for fixing this @zimbatm.
When I try to install
niv
, following the instructions from the README, with the latest nixpkgs, I get the following. My expectation that a smaller download would be needed, as niv is just a binary and doesn't needghc
to run.nixpkgs version:
Incidentally, the instructions to install the latest version fetch way less (~30x) dependencies: