fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / an / anytone-emu / package.nix
blobc60ac90e81668042b3d794ec3d2f9bb5bc618969
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   udev,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "anytone-emu";
11   version = "unstable-2023-06-15";
13   src = fetchFromGitHub {
14     owner = "hmatuschek";
15     repo = "anytone-emu";
16     rev = "c6a63b1c9638b48ed0969f90a5e11e2a5fe59458";
17     hash = "sha256-Y+7DkenYiwnfVWtMwmtX64sUN7bBVoReEmZQfEjHn8o=";
18   };
20   cargoLock = {
21     lockFile = ./Cargo.lock;
22   };
24   postPatch = ''
25     ln -s ${./Cargo.lock} Cargo.lock
26   '';
28   nativeBuildInputs = [
29     pkg-config
30   ];
32   buildInputs = [
33     udev
34   ];
36   meta = with lib; {
37     description = "Tiny emulator for AnyTone radios";
38     homepage = "https://github.com/hmatuschek/anytone-emu";
39     license = licenses.gpl3Only;
40     maintainers = [ ];
41     platforms = platforms.linux;
42     mainProgram = "anytone-emu";
43   };