sigil/packages/genodelabs/depot-targets.nix

132 lines
2.9 KiB
Nix
Raw Normal View History

# This file contains overrides necessary to build some Make and Depot targets.
2020-08-02 16:46:34 +02:00
# Many targets can be built with the default attributes, and are not listed here.
# However, any package listed here with empty overrides ({ }) will be added to
# the package attributes of this flake.
2020-08-02 16:46:34 +02:00
2020-11-06 20:59:33 +01:00
{ buildPackages, genodePackages, ports }:
2020-06-08 12:43:37 +02:00
with ports;
let
2020-11-06 20:59:33 +01:00
self = genodePackages;
includeDir = pkg: buildPackages.lib.getDev pkg + "/include";
hostLibcInc = includeDir buildPackages.glibc;
# TODO: does this need to be glibc?
2020-06-08 12:43:37 +02:00
vbox5' = {
nativeBuildInputs = with buildPackages; [ iasl yasm ];
portInputs = [ libc libiconv qemu-usb stdcxx virtualbox5 ];
};
in {
acpi_drv = { };
bash = {
enableParallelBuilding = false;
nativeBuildInputs = with buildPackages; [ autoconf ];
portInputs = with ports; [ bash libc ];
postInstall = ''
find depot/genodelabs/bin/ -name '*.tar' -exec tar xf {} -C $out \;
rm "''${!outputBin}/bin/bashbug"
'';
};
cached_fs_rom.patches = [ ./cached_fs_rom.patch ];
2020-10-19 23:04:41 +02:00
coreutils = {
enableParallelBuilding = false;
portInputs = with ports; [ coreutils libc ];
postInstall = ''
find depot/genodelabs/bin/ -name '*.tar' -exec tar xf {} -C $out \;
'';
};
fb_sdl = with buildPackages; {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ SDL ];
HOST_INC_DIR = [ hostLibcInc (includeDir SDL) ];
};
gpt_write.portInputs = [ jitterentropy ];
init.patches = [ ./sandbox.patch ./xml-fail.patch ];
2020-08-29 17:31:53 +02:00
event_filter.patches = [ ./event_filter.patch ];
2020-04-29 00:07:24 +02:00
intel_fb_drv = {
BOARD = "pc";
portInputs = [ dde_linux ];
};
2020-05-15 16:54:33 +02:00
ipxe_nic_drv.portInputs = [ dde_ipxe ];
libc = {
2020-11-06 20:59:33 +01:00
buildInputs = [ self.vfs ];
portInputs = [ libc ];
patches = [ ./libc.patch ];
};
2020-05-15 16:54:33 +02:00
libiconv.portInputs = [ libc libiconv ];
linux_nic_drv.HOST_INC_DIR = [ hostLibcInc ];
lx_block.HOST_INC_DIR = [ hostLibcInc ];
nic_bridge = { };
nic_loopback = { };
noux.portInputs = [ libc ];
platform_drv = { };
2020-11-06 20:59:33 +01:00
posix = {
buildInputs = [ self.libc ];
portInputs = [ ports.libc ];
};
report_rom = { };
rom_logger = { };
2020-06-03 13:17:26 +02:00
rtc_drv.meta.platforms = [ "x86_64-genode" ];
rump = {
portInputs = [ dde_rump ];
buildInputs = with buildPackages; [ zlib ];
};
sequence = { };
2020-05-15 16:54:33 +02:00
stdcxx.portInputs = [ libc stdcxx ];
2020-08-02 16:46:34 +02:00
# The following are tests are patched to exit at completion
2020-05-19 12:30:38 +02:00
"test-log".patches = [ ./test-log.patch ];
"test-signal".patches = [ ./test-signal.patch ];
usb_drv.portInputs = [ dde_linux ];
2020-06-08 12:43:37 +02:00
vbox5 = vbox5';
2020-05-15 16:54:33 +02:00
2020-06-08 12:43:37 +02:00
vbox5-nova = vbox5';
vesa_drv.portInputs = [ libc x86emu ];
vfs.outputs = [ "out" "lib" ];
vfs_audit = { };
2020-10-19 23:04:41 +02:00
vfs_block = { };
vfs_import.patches = [ ./vfs_import.patch ];
vfs_jitterentropy.portInputs = [ jitterentropy libc ];
vfs_lwip.portInputs = [ lwip ];
vfs_pipe = { };
vfs_ttf.portInputs = [ libc stb ];
virtdev_rom = { };
virtio_nic_drv = { };
wifi_drv.portInputs = [ dde_linux libc openssl ];
}