[<<][nixos][>>][..]
Sun Nov 26 12:28:58 EST 2017

Copying closures manually without nix on the target

$ cp -auxv `nix-store -qR  /nix/store/4sp0sc2wxas7213x59smrwhliqmhc5yk-bash-4.4-p12` .
after setting up a proper link to /bin/bash, this works in a chroot

$ nix-env -q dstat-0.7.3 --out-path

or just

$ nix-build <nixfile>


So it's possible to deploy to e.g. lxc once it builds on the dev machine.

Still, probably best to stick with standard nix installs.

E.g:

tom@panda:~/nix-custom$ nix-store -qR /nix/store/b953ln3rfgc822dvqbp76iq13irzawxq-busybox-1.27.2-armv6l-unknown-linux-gnueabihf
/nix/store/03v97inn212jf1lychvsz2if6f1n4wzb-glibc-2.25-49
/nix/store/18s27waif2l883szk6hal81wfbj6nf6a-linux-headers-4.4.10-armv6l-unknown-linux-gnueabihf
/nix/store/232zf2gjh4dlcaih5chb3xnggijabx1n-linux-headers-4.4.10
/nix/store/i8sna1nj7cmpyxyzppck0py4dlx6kyj0-gcc-6.4.0-lib
/nix/store/68b47ii8r2si70wdfa500qx55xglsyav-gcc-6.4.0-armv6l-unknown-linux-gnueabihf-stage-static-lib
/nix/store/zn5pbm4zc0y2vibgsgf8y3nzr51sf6k4-gmp-6.1.2
/nix/store/vk8vynyabkff4g369b8h356r901d00qb-mpfr-3.1.3
/nix/store/isd29hsk5c83c3d52lmpbkalm9dln79n-libmpc-1.0.3
/nix/store/3h4w8xjjr5dp20gvvmr0mbyhwyd5sa53-glibc-2.25-49-bin
/nix/store/j5cp2zw7i1m4f9526js8734i4nl1h478-glibc-2.25-49-dev
/nix/store/p0pi16040hgjkwb5931nw8iclvlixcg4-zlib-1.2.11
/nix/store/x3wnjni3my5r8d8vpja3qsygvg4bcbgl-gcc-6.4.0
/nix/store/lis00bns5j1sl6lk84l49bh1clp1f3p7-armv6l-unknown-linux-gnueabihf-binutils-2.28.1
/nix/store/nzsx07bw4araqqnyylwa636935k9ar67-isl-0.14.1
/nix/store/p4c2x3xa36isv3sdq6bbr1wbyizhx4r4-gcc-6.4.0-armv6l-unknown-linux-gnueabihf-stage-static
/nix/store/28hjm5wz53f50nfl1wcl03x40k49az0l-glibc-2.25-49-armv6l-unknown-linux-gnueabihf-armv6l-unknown-linux-gnueabihf
/nix/store/b953ln3rfgc822dvqbp76iq13irzawxq-busybox-1.27.2-armv6l-unknown-linux-gnueabihf

Now this has a bunch of stuff that isn't necessary.

Conclusion for now is that it is not ready yet.  To use the cross
compiler it is probably best to start over, and not use nixpkgs.

Also, I need to think about what I want to do.  Once the buildroot was
running on the pi, I didn't use it.  Not sure why.  Maybe it was just
to get it running?

Similarly, I really like the idea of nixos, and would like to combine
it with something that can generate a simple closure for an embedded
linux.





[Reply][About]
[<<][nixos][>>][..]