5 , withPlatform ? "generic"
10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
15 owner = "riscv-software-src";
18 hash = "sha256-vK14P97FcaVz4GDr/0055Z6s/k7BPKPQGZ/MQxbOWu0=";
22 patchShebangs ./scripts
25 nativeBuildInputs = [ python3 ];
32 "PLATFORM=${withPlatform}"
33 ] ++ lib.optionals (withPayload != null) [
34 "FW_PAYLOAD_PATH=${withPayload}"
35 ] ++ lib.optionals (withFDT != null) [
36 "FW_FDT_PATH=${withFDT}"
39 enableParallelBuilding = true;
45 description = "RISC-V Open Source Supervisor Binary Interface";
46 homepage = "https://github.com/riscv-software-src/opensbi";
47 license = licenses.bsd2;
48 maintainers = with maintainers; [ ius nickcao zhaofengli ];
49 platforms = [ "riscv64-linux" "riscv32-linux" ];