[Nix-dev] Compiling Android tree with buildFHSUserEnv

Nikolay Amiantov ab at fmap.me
Wed Apr 22 17:46:37 CEST 2015


Hi all,

With recent patches for build-fhs-*env in master it's now possible to 
(ab)use FHS userenv infrastructure to work with the Android source tree. 
It's, as can be imagined, an enormous (~20 GB!) pile of source code 
together with dynamically-linked binaries and Makefiles/scripts ridden 
with assumptions about OS directory structure and installed packages. 
It's very hard to patch and clean this tree of assumptions everywhere, 
and if done it would be very hard to maintain. Instead with Nix 
expression like [1] you can quickly and conveniently get into an 
FHS-compatible environment that the tree likes with just `nix-shell`. I 
imagine there might be other situations when this quick-and-dirty 
measure can be quite useful (running games distributed as .tar.gz?).

[1]: http://pastebin.com/heqGBMzL

-- 
Nikolay.



More information about the nix-dev mailing list