about summary refs log tree commit diff
path: root/pkgs/by-name/ea/ear2ctl/package.nix
blob: 4d4e038f85f02415115896884a52f800a6a55879 (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
{ lib, rustPlatform, fetchFromGitLab, pkg-config, dbus }:

rustPlatform.buildRustPackage rec {
  pname = "ear2ctl";
  version = "0.1.0";

  src = fetchFromGitLab {
    owner = "bharadwaj-raju";
    repo = "ear2ctl";
    rev = version;
    hash = "sha256-xaxl4opLMw9KEDpmNcgR1fBGUqO4BP5a/U52Kz+GAvc=";
  };

  cargoHash = "sha256-ax+/lvdEOjLnwE3Gvji7aaeF9KXjoOXdlTvxYDo8wGI=";

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ dbus ];

  meta = {
    description = "Linux controller for the Nothing Ear (2)";
    homepage = "https://gitlab.com/bharadwaj-raju/ear2ctl";
    maintainers = with lib.maintainers; [ jaredmontoya ];
    license = lib.licenses.gpl3Plus;
    platforms = lib.platforms.linux;
    mainProgram = "ear2ctl";
  };
}