From 1ed30235dbaae9f95c34826051eb88f9d6def032 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Mon, 21 Feb 2022 13:33:41 +0100 Subject: [PATCH 2/2] gnu: Add rkdeveloptool-pine64. * gnu/packages/hardware.scm (rkdeveloptool-pine64): New variable. diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index e4aceab54b..ceb63081b2 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -807,6 +807,41 @@ (define-public rkdeveloptool as the Pinebook Pro.") (license license:gpl2+)))) +(define-public rkdeveloptool-pine64 + (package + (name "rkdeveloptool-pine64") + (version "1.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url + "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nh9592mllygycnxbw91vg58wwais7w3w62rl9gcvc4m3i909b1z")))) + (build-system meson-build-system) + (arguments + `(#:tests? #f ;no test suite + #:phases + (modify-phases %standard-phases + ;; attempts to place the file into the udev pkg read-only path + (add-after 'unpack 'fix-udev-path + (lambda* _ + (substitute* "meson.build" + (("udev_rules_dir,") (string-append "'" %output + "/lib/udev/rules.d',")))))))) + (native-inputs (list pkg-config)) + (inputs (list eudev libusb)) + (synopsis "Read from and write to RockChicp devices over USB") + (description + "Rkdeveloptool is a fastboot-like CLI tool to read from and +write to RockChip devices over USB. Supports PineNote and Quartz64 as well +as other Pine64 RK devices.") + (home-page "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool") + (license license:gpl2+))) + (define-public libqb (package (name "libqb") -- 2.34.0