2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-02-09 11:40:11 +00:00
|
|
|
, fetchFromGitHub
|
2022-10-30 15:09:59 +00:00
|
|
|
, pkg-config
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, bluez
|
|
|
|
, dbus
|
|
|
|
, openssl
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, glib
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "watchmate";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.4.5";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-10-30 15:09:59 +00:00
|
|
|
owner = "azymohliad";
|
|
|
|
repo = "watchmate";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-4L9mfZWphwXON8VgRcGrz+k62wyPzd1phtRu9HQnVdE=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"mpris2-zbus-0.1.0" = "sha256-f2hth7TnA14I4UPyp0u4IfMi9WY4G3M1sEc4xNtnbr0=";
|
|
|
|
};
|
|
|
|
};
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
bluez
|
|
|
|
dbus
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 assets/io.gitlab.azymohliad.WatchMate.desktop -t $out/share/applications/
|
|
|
|
install -Dm444 assets/io.gitlab.azymohliad.WatchMate.metainfo.xml -t $out/share/metainfo/
|
|
|
|
install -Dm444 assets/icons/io.gitlab.azymohliad.WatchMate.svg -t $out/share/icons/hicolor/scalable/apps/
|
|
|
|
install -Dm444 assets/icons/io.gitlab.azymohliad.WatchMate-symbolic.svg -t $out/share/icons/hicolor/scalable/apps/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PineTime smart watch companion app for Linux phone and desktop";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/azymohliad/watchmate";
|
|
|
|
changelog = "https://github.com/azymohliad/watchmate/raw/v${version}/CHANGELOG.md";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ chuangzhu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|