[Nix-dev] Compiling Android tree with buildFHSUserEnv

James Cook james.cook at utoronto.ca
Wed Apr 22 18:46:18 CEST 2015


On 22 April 2015 at 08:46, Nikolay Amiantov <ab at fmap.me> wrote:
> 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.

Thanks. This sounds very useful!

James


More information about the nix-dev mailing list