diff --git a/pkgs/misc/riscv-pk/default.nix b/pkgs/misc/riscv-pk/default.nix new file mode 100644 index 000000000000..1800f57d6855 --- /dev/null +++ b/pkgs/misc/riscv-pk/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, autoreconfHook }: let + rev = "e5846a2bc707eaa58dc8ab6a8d20a090c6ee8570"; + sha256 = "1clynpp70fnbgsjgxx7xi0vrdrj1v0h8zpv0x26i324kp2gwylf4"; + revCount = "438"; + shortRev = "e5846a2"; +in stdenv.mkDerivation { + name = "riscv-pk-0.1pre${revCount}_${shortRev}"; + + src = fetchFromGitHub { + owner = "riscv"; + repo = "riscv-pk"; + inherit rev sha256; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + preConfigure = '' + mkdir build + cd build + ''; + + configureScript = "../configure"; + + hardeningDisable = [ "all" ]; + + meta = { + description = "RISC-V Proxy Kernel and Bootloader."; + homepage = https://github.com/riscv/riscv-pk; + license = stdenv.lib.licenses.bsd3; + maintainers = [ stdenv.lib.maintianers.shlevy ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1fa50cffa94..05368b965227 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13541,6 +13541,8 @@ with pkgs; rfkill_udev = callPackage ../os-specific/linux/rfkill/udev.nix { }; + riscv-pk = callPackage ../misc/riscv-pk { }; + rtkit = callPackage ../os-specific/linux/rtkit { }; rt5677-firmware = callPackage ../os-specific/linux/firmware/rt5677 { };