Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.0 KiB
Nix

{
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";
};
}