Fork 0

27 lines
1.3 KiB
Raw Normal View History

2019-12-14 11:58:56 +01:00
# Genode Packages
2019-09-24 02:17:43 +02:00
This repo contains Nix expressions for building Genode with Nixpkgs and building
Nixpkgs for Genode. At the moment the former is experimental and broken in many
cases, the later is probably broken for all cases.
Furthermore, this repository is structured as a Nix flake, with is in itself an
experimental extension of the Nix utility. The flakes capable `nix` frontend is
available from Nixpkgs as `nixFlakes`. It is possible to bootstrap to flakes by
installing Nix on a standard Linux distro, followed by `nix-env -i nixFlakes`.
Flakes are available from NixOS using the following expression:
`{ pkgs, ... }: { nix.package = pkgs.nixFlakes; }`
2019-09-24 02:17:43 +02:00
2019-12-14 11:58:56 +01:00
## Toolchain
2019-09-30 13:39:26 +02:00
2019-12-14 11:58:56 +01:00
The LLVM cross-compiler may useful already, Clang apparently builds trivial
Genode componenents without serious problems. Bootstrapping GCC is not practical
due to the recursive autotools build system.
2019-09-30 13:39:26 +02:00
The compiler environment for x86_64 should be accessible from the `stdenv` at
the path `.#packages.x86_64-linux-x86_64-genode.stdenv`. There is currently no
recommendations for integrating the compiler within external build systems.
2019-09-30 13:39:26 +02:00
Bootstrapping the LLVM toolchain on a laptop can take hours, so personally I
farm out the builds. If you interested in binaries please contact me and we can
setup a cache.