biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / radio / anytone-emu / default.nix
blob5f4731616667e7fcb0466f5c0bf64ccd26f8e58e
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , udev
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "anytone-emu";
10   version = "unstable-2023-06-15";
12   src = fetchFromGitHub {
13     owner = "hmatuschek";
14     repo = "anytone-emu";
15     rev = "c6a63b1c9638b48ed0969f90a5e11e2a5fe59458";
16     hash = "sha256-Y+7DkenYiwnfVWtMwmtX64sUN7bBVoReEmZQfEjHn8o=";
17   };
19   cargoLock = {
20     lockFile = ./Cargo.lock;
21   };
23   postPatch = ''
24     ln -s ${./Cargo.lock} Cargo.lock
25   '';
27   nativeBuildInputs = [
28     pkg-config
29   ];
31   buildInputs = [
32     udev
33   ];
35   meta = with lib; {
36     description = "A tiny emulator for AnyTone radios";
37     homepage = "https://github.com/hmatuschek/anytone-emu";
38     license = licenses.gpl3Only;
39     maintainers = with maintainers; [ janik ];
40     platforms = platforms.linux;
41     mainProgram = "anytone-emu";
42   };