5 , withPlatform ? "generic"
10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
15 owner = "riscv-software-src";
18 hash = "sha256-JNkPvmKYd5xbGB2lsZKWrpI6rBIckWbkLYu98bw7+QY=";
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}"
43 description = "RISC-V Open Source Supervisor Binary Interface";
44 homepage = "https://github.com/riscv-software-src/opensbi";
45 license = licenses.bsd2;
46 maintainers = with maintainers; [ ius nickcao zhaofengli ];
47 platforms = [ "riscv64-linux" ];