blob: eea51546057e33b0d6958b331b7fa1cfd3439fe3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ 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;
};
}
|