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

2013-09-13 Thread Jonas Hörsch
hi everyone, i want to add more or less the following howto to the wiki. there is just one question remaining, which i'd like to sort out beforehand, namely what is the distinction between nix-store --add and nix-prefetch-url and the resulting store paths? would anyone care to enlighten me?

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

2013-09-13 Thread Jonas Hörsch
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

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

2013-09-13 Thread Marc Weber
No, but it suggests this instead which probably yields the same store path?: nix-store --add-fixed sha256 jdk-6u45-linux-x64.bin I don't know what the exact difference is, I'm also too lazy to look it up. ___ nix-dev mailing list

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

2013-09-13 Thread Jonas Hörsch
On Fri, Sep 13 2013, Marc Weber wrote: No, but it suggests this instead which probably yields the same store path?: nix-store --add-fixed sha256 jdk-6u45-linux-x64.bin oh cool. yes, it does yield the same path as nix-prefetch-url. together with the observation, that nix-store --add also

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

2013-09-13 Thread Marc Weber
You're welcome. Keep asking and start/continue contributing. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev