2
0
Fork 0
genodepkgs/platform.nix

22 lines
502 B
Nix

# SPDX-FileCopyrightText: Emery Hemingway
#
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
{ platform, execFormats, ... }:
let
f = { isGenode ? false, ... }:
if isGenode then {
uname.system = "Genode";
useLLVM = true;
kernel = {
name = "genode";
execFormat = execFormats.elf;
families = { };
};
abi = "elf";
libc = "genodelibc";
extensions = { executable = ""; sharedLibrary = ".lib.so"; };
} else { };
in f platform