nixpkgs/pkgs/by-name/rk/rkdeveloptool/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

29 lines
926 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1 }:
stdenv.mkDerivation {
pname = "rkdeveloptool";
version = "unstable-2021-04-08";
src = fetchFromGitHub {
owner = "rockchip-linux";
repo = "rkdeveloptool";
rev = "46bb4c073624226c3f05b37b9ecc50bbcf543f5a";
sha256 = "eIFzyoY6l3pdfCN0uS16hbVp0qzdG3MtcS1jnDX1Yk0=";
};
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";
};
}