push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
{
stdenvNoCC,
lib,
fetchFromGitHub,
rkbin,
}:
stdenvNoCC.mkDerivation {
pname = "rkbin";
version = "0-unstable-2025-01-24";
src = fetchFromGitHub {
owner = "rockchip-linux";
repo = "rkbin";
rev = "f43a462e7a1429a9d407ae52b4745033034a6cf9";
hash = "sha256-geESfZP8ynpUz/i/thpaimYo3kzqkBX95gQhMBzNbmk=";
};
installPhase = ''
mkdir $out
mv bin doc $out/
cp LICENSE $out/doc/LICENSE
'';
passthru = {
BL31_RK3568 = "${rkbin}/bin/rk35/rk3568_bl31_v1.44.elf";
BL31_RK3588 = "${rkbin}/bin/rk35/rk3588_bl31_v1.48.elf";
TPL_RK3566 = "${rkbin}/bin/rk35/rk3566_ddr_1056MHz_v1.23.bin";
TPL_RK3568 = "${rkbin}/bin/rk35/rk3568_ddr_1056MHz_v1.23.bin";
TPL_RK3588 = "${rkbin}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin";
};
meta = with lib; {
description = "Rockchip proprietary bootloader blobs";
homepage = "https://github.com/rockchip-linux/rkbin";
license = licenses.unfreeRedistributableFirmware;
maintainers = with maintainers; [ thefossguy ];
platforms = lib.platforms.all;
};
}

View File

@@ -0,0 +1,47 @@
{
stdenv,
lib,
rkbin,
qemu,
}:
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.hostPlatform.isAarch64 "${qemu}/bin/qemu-x86_64"} ./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"
];
};
}

View File

@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchurl,
meson,
pkg-config,
libusb1,
scdoc,
ninja,
cmake,
}:
let
rev = "17823e99898131a234ccdb39ad114dbaeebb7fc3";
in
stdenv.mkDerivation {
pname = "rkdeveloptool";
version = "unstable-2021-09-04";
src = fetchurl {
url = "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool/-/archive/${rev}/rkdeveloptool-${rev}.tar.gz";
hash = "sha256-KbNjuRb6/FTTInxXVYVTtCfEKZJC/aBdtkZDkDu+rKE=";
};
postPatch = ''
substituteInPlace meson.build --replace \
"udev_rules_dir = udev.get_pkgconfig_variable('udevdir') + '/rules.d'" \
"udev_rules_dir = '$out/lib/udev/rules.d'"
'';
nativeBuildInputs = [
meson
ninja
cmake
pkg-config
scdoc
];
buildInputs = [ libusb1 ];
doInstallCheck = true;
meta = {
homepage = "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool/";
description = "Tool from Rockchip to communicate with Rockusb devices (pine64 fork)";
license = lib.licenses.gpl2Only;
maintainers = [ ];
mainProgram = "rkdeveloptool";
};
}

View File

@@ -0,0 +1,38 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
libusb1,
}:
stdenv.mkDerivation {
pname = "rkdeveloptool";
version = "unstable-2025-03-07";
src = fetchFromGitHub {
owner = "rockchip-linux";
repo = "rkdeveloptool";
rev = "304f073752fd25c854e1bcf05d8e7f925b1f4e14";
sha256 = "sha256-GcSxkraJrDCz5ADO0XJk4xRrYTk0V5dAAim+D7ZiMJQ=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [ libusb1 ];
# main.cpp:1568:36: error: '%s' directive output may be truncated writing up to 557 bytes into a region of size 5
CPPFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-error=format-truncation" ];
meta = with lib; {
homepage = "https://github.com/rockchip-linux/rkdeveloptool";
description = "Tool from Rockchip to communicate with Rockusb devices";
license = licenses.gpl2Only;
maintainers = [ maintainers.lopsided98 ];
mainProgram = "rkdeveloptool";
};
}

View File

@@ -0,0 +1,36 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "rke";
version = "1.8.7";
src = fetchFromGitHub {
owner = "rancher";
repo = "rke";
rev = "v${version}";
hash = "sha256-qborClm+QF1cVKSPEY+JYEylQ2I+XHkmCd3ez8fdfmk=";
};
vendorHash = "sha256-OWC8OZhORHwntAR2YHd4KfQgB2Wtma6ayBWfY94uOA4=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X=main.VERSION=v${version}"
];
meta = {
homepage = "https://github.com/rancher/rke";
description = "Extremely simple, lightning fast Kubernetes distribution that runs entirely within containers";
mainProgram = "rke";
changelog = "https://github.com/rancher/rke/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ urandom ];
};
}

View File

@@ -0,0 +1,33 @@
{
lib,
stdenv,
fetchurl,
libusb1,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rkflashtool";
version = "6.1";
src = fetchurl {
url = "mirror://sourceforge/rkflashtool/rkflashtool-${finalAttrs.version}-src.tar.bz2";
hash = "sha256-K8DsWAyqeQsK7mNDiKkRCkKbr0uT/yxPzj2atYP1Ezk=";
};
buildInputs = [ libusb1 ];
nativeBuildInputs = [ pkg-config ];
installPhase = ''
mkdir -p $out/bin
cp rkunpack rkcrc rkflashtool rkparameters rkparametersblock rkunsign rkmisc $out/bin
'';
meta = {
homepage = "https://sourceforge.net/projects/rkflashtool/";
description = "Tools for flashing Rockchip devices";
platforms = lib.platforms.linux;
maintainers = [ ];
license = lib.licenses.bsd2;
};
})

View File

@@ -0,0 +1,41 @@
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "rkik";
version = "1.1.1";
src = fetchFromGitHub {
owner = "aguacero7";
repo = "rkik";
tag = "v${finalAttrs.version}";
hash = "sha256-zC06Wt8XNpSSru7GUC2VAiP6t6fuWdpinXoIuBSk7kw=";
};
cargoHash = "sha256-XMO7imFg/f+1KzNTrGLzxZ3yRSvD2WxSKpHCIT99xEk=";
passthru.updateScript = nix-update-script { };
meta = {
description = "Command-line tool for querying NTP servers and comparing clock offsets";
longDescription = ''
Most systems rely on a daemon (like chronyd or ntpd) to
synchronize time. But what if you just want to inspect the
current offset between your system clock and one or more NTP
servers without root, without sync, and without installing
anything heavyweight?
RKIK is a Rust-based CLI tool designed for stateless and passive
NTP inspection, just as dig or ping are for DNS and ICMP.
'';
homepage = "https://github.com/aguacero7/rkik";
changelog = "https://github.com/aguacero7/rkik/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "rkik";
};
})

View File

@@ -0,0 +1,49 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
lv2,
fftw,
cmake,
libXpm,
libXft,
libjack2,
libsamplerate,
libsndfile,
}:
stdenv.mkDerivation rec {
pname = "rkrlv2";
version = "beta_3";
src = fetchFromGitHub {
owner = "ssj71";
repo = "rkrlv2";
rev = version;
sha256 = "WjpPNUEYw4aGrh57J+7kkxKFXgCJWNaWAmueFbNUJJo=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libXft
libXpm
lv2
fftw
libjack2
libsamplerate
libsndfile
];
meta = with lib; {
description = "Rakarrak effects ported to LV2";
homepage = "https://github.com/ssj71/rkrlv2";
license = licenses.gpl2Only;
maintainers = [ maintainers.joelmo ];
platforms = platforms.unix;
broken = stdenv.hostPlatform.isAarch64; # g++: error: unrecognized command line option '-mfpmath=sse'
};
}

View File

@@ -0,0 +1,52 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
libevdev,
openssl,
makeWrapper,
nixosTests,
}:
rustPlatform.buildRustPackage rec {
pname = "rkvm";
version = "0.6.1";
src = fetchFromGitHub {
owner = "htrefil";
repo = "rkvm";
rev = version;
hash = "sha256-pGCoNmGOeV7ND4kcRjlJZbEMnmKQhlCtyjMoWIwVZrM=";
};
cargoHash = "sha256-2vioqALLeLFFmdZPwdTXCWJJkpQMWdi7KQ7mxO0Sviw=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
makeWrapper
];
buildInputs = [ libevdev ];
postInstall = ''
install -Dm444 -t "$out/lib/systemd/system" systemd/rkvm-*.service
install -Dm444 example/server.toml "$out/etc/rkvm/server.example.toml"
install -Dm444 example/client.toml "$out/etc/rkvm/client.example.toml"
wrapProgram $out/bin/rkvm-certificate-gen --prefix PATH : ${lib.makeBinPath [ openssl ]}
'';
passthru.tests = {
inherit (nixosTests) rkvm;
};
meta = {
description = "Virtual KVM switch for Linux machines";
homepage = "https://github.com/htrefil/rkvm";
changelog = "https://github.com/htrefil/rkvm/releases/tag/${version}";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}