2024-06-22 10:59:13 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitLab, pkg-config, dbus }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ear2ctl";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "bharadwaj-raju";
|
2024-06-28 21:47:33 +00:00
|
|
|
repo = "ear2ctl";
|
2024-06-22 10:59:13 +00:00
|
|
|
rev = version;
|
|
|
|
hash = "sha256-xaxl4opLMw9KEDpmNcgR1fBGUqO4BP5a/U52Kz+GAvc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-ax+/lvdEOjLnwE3Gvji7aaeF9KXjoOXdlTvxYDo8wGI=";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ dbus ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-29 09:43:57 +00:00
|
|
|
description = "Linux controller for the Nothing Ear (2)";
|
2024-06-22 10:59:13 +00:00
|
|
|
homepage = "https://gitlab.com/bharadwaj-raju/ear2ctl";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
mainProgram = "ear2ctl";
|
|
|
|
};
|
|
|
|
}
|