[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:26:20 CEST 2013


On Fri, Sep 13 2013, Marc Weber wrote:

> The main difference is that prefetch-url can read from http and the
> other only works with files?

that doesn't explain why

# nix-store --add test.mp4 
/nix/store/z3wnqmfzqfmz5gis55bvymx3jbpgx7s5-test.mp4

and

# nix-prefetch-url file://$(pwd)/test.mp4
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8948k  100 8948k    0     0   329M      0 --:--:-- --:--:-- --:--:--  329M
path is ‘/nix/store/1s52mklnbz1x3708wqyi9dz10xzfz63n-test.mp4’
08jjf3dqgsrs3yg1k9x740mk8c8i4qpcj6xifdriy7j9lbaxy0q0

store the same file into different paths
/nix/store/z3wnqmfzqfmz5gis55bvymx3jbpgx7s5-test.mp4
against
/nix/store/1s52mklnbz1x3708wqyi9dz10xzfz63n-test.mp4




More information about the nix-dev mailing list