nixpkgs/pkgs/applications/radio/anytone-emu/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

44 lines
818 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, udev
}:
rustPlatform.buildRustPackage rec {
pname = "anytone-emu";
version = "unstable-2023-06-15";
src = fetchFromGitHub {
owner = "hmatuschek";
repo = "anytone-emu";
rev = "c6a63b1c9638b48ed0969f90a5e11e2a5fe59458";
hash = "sha256-Y+7DkenYiwnfVWtMwmtX64sUN7bBVoReEmZQfEjHn8o=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
nativeBuildInputs = [
pkg-config
];
buildInputs = [
udev
];
meta = with lib; {
description = "Tiny emulator for AnyTone radios";
homepage = "https://github.com/hmatuschek/anytone-emu";
license = licenses.gpl3Only;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "anytone-emu";
};
}