From fbc6f1e6f21ba4f464d0184775f82db5cd24dc67 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 20 Mar 2024 06:27:36 +0530 Subject: [PATCH] rkbin: init at unstable-2024.02.22 --- pkgs/by-name/rk/rkbin/package.nix | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/rk/rkbin/package.nix diff --git a/pkgs/by-name/rk/rkbin/package.nix b/pkgs/by-name/rk/rkbin/package.nix new file mode 100644 index 000000000000..f0d320dfef95 --- /dev/null +++ b/pkgs/by-name/rk/rkbin/package.nix @@ -0,0 +1,34 @@ +{ stdenv +, lib +, fetchFromGitHub +}: + +stdenv.mkDerivation { + pname = "rkbin"; + version = "unstable-2024.02.22"; + + src = fetchFromGitHub { + owner = "rockchip-linux"; + repo = "rkbin"; + rev = "a2a0b89b6c8c612dca5ed9ed8a68db8a07f68bc0"; + hash = "sha256-U/jeUsV7bhqMw3BljmO6SI07NCDAd/+sEp3dZnyXeeA="; + }; + + installPhase = '' + mkdir $out + mv bin doc $out/ + ''; + + BL31_RK3568 = "bin/rk35/rk3568_ddr_1056MHz_v1.21.bin"; + ROCKCHIP_TPL_RK3568 = "bin/rk35/rk3568_ddr_1056MHz_v1.21.bin"; + + ROCKCHIP_TPL_RK3588 = "bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin"; + + meta = with lib; { + description = "Rockchip proprietary bootloader blobs"; + homepage = "https://github.com/rockchip-linux/rkbin"; + license = licenses.unfree; + maintainers = with maintainers; [ thefossguy ]; + platforms = [ "aarch64-linux" ]; + }; +}