evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / an / anytone-emu / package.nix
blob8d87096b44077d99e7ca9542bdf73337902f1819
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 = "Tiny emulator for AnyTone radios";
37     homepage = "https://github.com/hmatuschek/anytone-emu";
38     license = licenses.gpl3Only;
39     maintainers = [ ];
40     platforms = platforms.linux;
41     mainProgram = "anytone-emu";
42   };