depot/third_party/nixpkgs/pkgs/applications/radio/anytone-emu/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

42 lines
811 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 = "A tiny emulator for AnyTone radios";
homepage = "https://github.com/hmatuschek/anytone-emu";
license = licenses.gpl3Only;
maintainers = with maintainers; [ janik ];
platforms = platforms.linux;
};
}