Loading pkgs/by-name/rk/rkbin/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,6 @@ stdenv.mkDerivation { homepage = "https://github.com/rockchip-linux/rkbin"; license = licenses.unfreeRedistributable; maintainers = with maintainers; [ thefossguy ]; platforms = [ "aarch64-linux" ]; platforms = lib.platforms.all; }; } pkgs/by-name/rk/rkboot/package.nix 0 → 100644 +43 −0 Original line number Diff line number Diff line { stdenv , lib , rkbin , box64 }: stdenv.mkDerivation { name = "rkboot"; src = rkbin.src; postPatch = '' substituteInPlace RKBOOT/*.ini --replace 'PATH=' 'PATH=rkboot/' ''; buildPhase = '' mkdir rkboot for i in $(ls ./RKBOOT/*.ini) do # The proprietary, statically linked binaries to perform boot_merge are # x86_64 only. Though we use box64 to emulate if building on aarch64-linux ${lib.optionalString stdenv.isAarch64 "${lib.getExe box64}"} ./tools/boot_merger "$i" || true done ''; installPhase = '' mkdir -p $out if [ -z "$(ls -A rkboot)" ]; then echo "Error: The 'rkboot' directory is empty." exit 1 else mv rkboot $out/bin fi ''; meta = with lib; { description = "Rockchip proprietary SPL bootloader blobs"; homepage = "https://github.com/rockchip-linux/rkbin"; license = licenses.unfreeRedistributable; maintainers = with maintainers; [ matthewcroughan ]; platforms = [ "x86_64-linux" "aarch64-linux" ]; }; } Loading
pkgs/by-name/rk/rkbin/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,6 @@ stdenv.mkDerivation { homepage = "https://github.com/rockchip-linux/rkbin"; license = licenses.unfreeRedistributable; maintainers = with maintainers; [ thefossguy ]; platforms = [ "aarch64-linux" ]; platforms = lib.platforms.all; }; }
pkgs/by-name/rk/rkboot/package.nix 0 → 100644 +43 −0 Original line number Diff line number Diff line { stdenv , lib , rkbin , box64 }: stdenv.mkDerivation { name = "rkboot"; src = rkbin.src; postPatch = '' substituteInPlace RKBOOT/*.ini --replace 'PATH=' 'PATH=rkboot/' ''; buildPhase = '' mkdir rkboot for i in $(ls ./RKBOOT/*.ini) do # The proprietary, statically linked binaries to perform boot_merge are # x86_64 only. Though we use box64 to emulate if building on aarch64-linux ${lib.optionalString stdenv.isAarch64 "${lib.getExe box64}"} ./tools/boot_merger "$i" || true done ''; installPhase = '' mkdir -p $out if [ -z "$(ls -A rkboot)" ]; then echo "Error: The 'rkboot' directory is empty." exit 1 else mv rkboot $out/bin fi ''; meta = with lib; { description = "Rockchip proprietary SPL bootloader blobs"; homepage = "https://github.com/rockchip-linux/rkbin"; license = licenses.unfreeRedistributable; maintainers = with maintainers; [ matthewcroughan ]; platforms = [ "x86_64-linux" "aarch64-linux" ]; }; }