[Nix-dev] wiki entry on how to add a large file into the nix store

Jonas Hörsch coroa at online.de
Fri Sep 13 15:35:53 CEST 2013


to summarize i don't understand, why:

# nix-store --add test.mp4
stores into
/nix/store/z3wnqmfzqfmz5gis55bvymx3jbpgx7s5-test.mp4
which coincides with
# nix-store --print-fixed-path --recursive sha256 \
      $(nix-hash --type sha256 --base32 test.mp4) test.mp4

against

# nix-prefetch-url file://$(pwd)/test.mp4
stores into
/nix/store/1s52mklnbz1x3708wqyi9dz10xzfz63n-test.mp4
which coincides with
# nix-store --print-fixed-path sha256 \
      $(nix-hash --type sha256 --flat --base32 test.mp4) test.mp4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130913/5aef53ec/attachment.bin 


More information about the nix-dev mailing list