2020-11-01 20:21:27 +01:00
|
|
|
# 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.
|
2020-11-01 20:21:27 +01:00
|
|
|
# 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;
|
|
|
|
|
2020-06-20 08:18:44 +02:00
|
|
|
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 {
|
2020-04-08 15:05:26 +02:00
|
|
|
|
2020-11-01 20:21:27 +01:00
|
|
|
acpi_drv = { };
|
|
|
|
|
2020-11-08 17:25:35 +01:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-11-10 17:32:49 +01:00
|
|
|
cached_fs_rom.patches = [ ./patches/cached_fs_rom.patch ];
|
2020-10-19 23:04:41 +02:00
|
|
|
|
2020-11-08 17:25:35 +01:00
|
|
|
coreutils = {
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
portInputs = with ports; [ coreutils libc ];
|
|
|
|
postInstall = ''
|
|
|
|
find depot/genodelabs/bin/ -name '*.tar' -exec tar xf {} -C $out \;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-06-20 08:18:44 +02:00
|
|
|
fb_sdl = with buildPackages; {
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ SDL ];
|
|
|
|
HOST_INC_DIR = [ hostLibcInc (includeDir SDL) ];
|
|
|
|
};
|
|
|
|
|
2020-04-08 15:05:26 +02:00
|
|
|
gpt_write.portInputs = [ jitterentropy ];
|
|
|
|
|
2020-11-10 17:32:49 +01:00
|
|
|
init.patches = [ ./patches/sandbox.patch ./patches/xml-fail.patch ];
|
2020-04-25 12:57:01 +02:00
|
|
|
|
2020-11-10 17:32:49 +01:00
|
|
|
event_filter.patches = [ ./patches/event_filter.patch ];
|
2020-04-29 00:07:24 +02:00
|
|
|
|
2020-04-08 15:05:26 +02:00
|
|
|
intel_fb_drv = {
|
|
|
|
BOARD = "pc";
|
|
|
|
portInputs = [ dde_linux ];
|
|
|
|
};
|
|
|
|
|
2020-05-15 16:54:33 +02:00
|
|
|
ipxe_nic_drv.portInputs = [ dde_ipxe ];
|
|
|
|
|
2020-05-07 21:45:55 +02:00
|
|
|
libc = {
|
2020-11-06 20:59:33 +01:00
|
|
|
buildInputs = [ self.vfs ];
|
2020-05-07 21:45:55 +02:00
|
|
|
portInputs = [ libc ];
|
2020-11-10 17:32:49 +01:00
|
|
|
patches = [ ./patches/libc.patch ];
|
2020-05-07 21:45:55 +02:00
|
|
|
};
|
2020-04-08 15:05:26 +02:00
|
|
|
|
2020-05-15 16:54:33 +02:00
|
|
|
libiconv.portInputs = [ libc libiconv ];
|
|
|
|
|
2020-06-20 08:18:44 +02:00
|
|
|
linux_nic_drv.HOST_INC_DIR = [ hostLibcInc ];
|
|
|
|
|
|
|
|
lx_block.HOST_INC_DIR = [ hostLibcInc ];
|
|
|
|
|
2020-11-01 20:21:27 +01:00
|
|
|
nic_bridge = { };
|
|
|
|
|
|
|
|
nic_loopback = { };
|
|
|
|
|
2020-11-10 16:09:43 +01:00
|
|
|
nic_router = { };
|
|
|
|
|
2020-04-08 15:05:26 +02:00
|
|
|
noux.portInputs = [ libc ];
|
|
|
|
|
2020-11-10 17:32:49 +01:00
|
|
|
platform_drv.patches = [ ./patches/platform_drv.patch ];
|
2020-11-01 20:21:27 +01:00
|
|
|
|
2020-11-06 20:59:33 +01:00
|
|
|
posix = {
|
|
|
|
buildInputs = [ self.libc ];
|
|
|
|
portInputs = [ ports.libc ];
|
|
|
|
};
|
2020-04-08 15:05:26 +02:00
|
|
|
|
2020-11-01 20:21:27 +01:00
|
|
|
report_rom = { };
|
|
|
|
|
|
|
|
rom_logger = { };
|
|
|
|
|
2020-06-03 13:17:26 +02:00
|
|
|
rtc_drv.meta.platforms = [ "x86_64-genode" ];
|
|
|
|
|
2020-04-08 15:05:26 +02:00
|
|
|
rump = {
|
|
|
|
portInputs = [ dde_rump ];
|
|
|
|
buildInputs = with buildPackages; [ zlib ];
|
|
|
|
};
|
|
|
|
|
2020-11-01 20:21:27 +01:00
|
|
|
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-04-26 07:15:21 +02:00
|
|
|
|
2020-11-10 17:32:49 +01:00
|
|
|
"test-log".patches = [ ./patches/test-log.patch ];
|
2020-05-19 12:30:38 +02:00
|
|
|
|
2020-11-10 17:32:49 +01:00
|
|
|
"test-signal".patches = [ ./patches/test-signal.patch ];
|
2020-04-26 07:15:21 +02:00
|
|
|
|
2020-04-08 15:05:26 +02:00
|
|
|
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';
|
2020-04-08 15:05:26 +02:00
|
|
|
|
|
|
|
vesa_drv.portInputs = [ libc x86emu ];
|
|
|
|
|
2020-05-07 21:33:26 +02:00
|
|
|
vfs.outputs = [ "out" "lib" ];
|
2020-11-07 13:53:56 +01:00
|
|
|
vfs_audit = { };
|
2020-10-19 23:04:41 +02:00
|
|
|
vfs_block = { };
|
2020-11-10 17:32:49 +01:00
|
|
|
vfs_import.patches = [ ./patches/vfs_import.patch ];
|
2020-04-08 15:05:26 +02:00
|
|
|
vfs_jitterentropy.portInputs = [ jitterentropy libc ];
|
2020-11-09 23:13:59 +01:00
|
|
|
vfs_lwip = {
|
2020-11-10 17:32:49 +01:00
|
|
|
patches = [ ./patches/lwip.patch ];
|
2020-11-09 23:13:59 +01:00
|
|
|
portInputs = [ lwip ];
|
|
|
|
};
|
2020-11-01 20:21:27 +01:00
|
|
|
vfs_pipe = { };
|
2020-04-08 15:05:26 +02:00
|
|
|
vfs_ttf.portInputs = [ libc stb ];
|
|
|
|
|
2020-11-01 20:21:27 +01:00
|
|
|
virtdev_rom = { };
|
2020-11-10 15:44:19 +01:00
|
|
|
|
|
|
|
virtio_nic_drv = {
|
2020-11-10 17:32:49 +01:00
|
|
|
patches = [ ./patches/virtio_net.patch ];
|
2020-11-10 15:44:19 +01:00
|
|
|
postInstall = "mv $out/bin/virtio_*_nic $out/bin/$pname";
|
|
|
|
};
|
2020-11-01 20:21:27 +01:00
|
|
|
|
2020-04-08 15:05:26 +02:00
|
|
|
wifi_drv.portInputs = [ dde_linux libc openssl ];
|
|
|
|
|
|
|
|
}
|