forked from mirrors/nixpkgs
rkdeveloptool-pine64: init at unstable-2021-09-04
This commit is contained in:
parent
7283d3942f
commit
4647a8f70a
44
pkgs/misc/rkdeveloptool-pine64/default.nix
Normal file
44
pkgs/misc/rkdeveloptool-pine64/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, meson
|
||||
, pkg-config
|
||||
, libusb1
|
||||
, scdoc
|
||||
, ninja
|
||||
, cmake
|
||||
}:
|
||||
|
||||
let
|
||||
rev = "cce7d2a5c4efd4e7727c440868141229354b327b";
|
||||
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";
|
||||
sha256 = "sha256-u/x1Y1zZ19SYwNLVAvpqjH247RijyDJ1HTDWIsmqlFk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace meson.build --replace \
|
||||
"udev_rules_dir = udev.get_pkgconfig_variable('udevdir') + '/rules.d'" \
|
||||
"udev_rules_dir = '$out/lib/udev'"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ meson ninja cmake pkg-config scdoc ];
|
||||
|
||||
buildInputs = [ libusb1 ];
|
||||
|
||||
meta =
|
||||
let
|
||||
inherit (lib) maintainers;
|
||||
in
|
||||
{
|
||||
homepage = "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool/";
|
||||
description = "A tool from Rockchip to communicate with Rockusb devices (pine64 fork)";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ maintainers.adisbladis ];
|
||||
};
|
||||
}
|
|
@ -29361,6 +29361,8 @@ with pkgs;
|
|||
|
||||
rkdeveloptool = callPackage ../misc/rkdeveloptool { };
|
||||
|
||||
rkdeveloptool-pine64 = callPackage ../misc/rkdeveloptool-pine64 { };
|
||||
|
||||
rocketchat-desktop = callPackage ../applications/networking/instant-messengers/rocketchat-desktop { };
|
||||
|
||||
rofi-unwrapped = callPackage ../applications/misc/rofi { };
|
||||
|
|
Loading…
Reference in a new issue