mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
81c4870a68
Changelog: a7fdf783cb/CHANGELOG.md (L3-L11)
Diff: https://github.com/tuna-f1sh/cyme/compare/v1.8.4...v1.8.5
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{
|
|
lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, pkg-config
|
|
, stdenv
|
|
, darwin
|
|
, libusb1
|
|
, nix-update-script
|
|
, testers
|
|
, cyme
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cyme";
|
|
version = "1.8.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tuna-f1sh";
|
|
repo = "cyme";
|
|
rev = "v${version}";
|
|
hash = "sha256-4lnW6p7MaAZdvyXddIoB8TuEQSCmBYOwyvOA1r2ZKxk=";
|
|
};
|
|
|
|
cargoHash = "sha256-sg6nIIiHUXHLnvn25kKWqqa8WV86D/arl4t3EUByQBQ=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.DarwinTools
|
|
];
|
|
|
|
buildInputs = [
|
|
libusb1
|
|
];
|
|
|
|
checkFlags = [
|
|
# doctest that requires access outside sandbox
|
|
"--skip=udev::hwdb::get"
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# system_profiler is not available in the sandbox
|
|
"--skip=test_run"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
package = cyme;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/tuna-f1sh/cyme";
|
|
changelog = "https://github.com/tuna-f1sh/cyme/releases/tag/${src.rev}";
|
|
description = "Modern cross-platform lsusb";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ h7x4 ];
|
|
platforms = platforms.linux ++ platforms.darwin ++ platforms.windows;
|
|
mainProgram = "cyme";
|
|
};
|
|
}
|