1 { lib, stdenv, fetchFromGitHub, autoreconfHook, payload ? null }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1cc0rz4q3a1zw8756b8yysw8lb5g4xbjajh5lvqbjix41hbdx6xz";
14 nativeBuildInputs = [ autoreconfHook ];
21 configureScript = "../configure";
23 configureFlags = lib.optional (payload != null)
24 "--with-payload=${payload}";
26 hardeningDisable = [ "all" ];
29 mv $out/* $out/.cleanup
30 mv $out/.cleanup/* $out
35 description = "RISC-V Proxy Kernel and Bootloader";
36 homepage = "https://github.com/riscv/riscv-pk";
37 license = lib.licenses.bsd3;
38 platforms = lib.platforms.riscv;
39 maintainers = [ lib.maintainers.shlevy ];