2023-10-19 13:55:26 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
pkg-config,
|
|
|
|
openssl,
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "aw-watcher-window-wayland";
|
|
|
|
version = "6108ad3df8e157965a43566fa35cdaf144b1c51b";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ActivityWatch";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-xl9+k6xJp5/t1QPOYfnBLyYprhhrzjzByDKkT3dtVVQ=";
|
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoPatches = [ ./rustc-serialize-fix.patch ];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"aw-client-rust-0.1.0" = "sha256-9tlVesnBeTlazKE2UAq6dzivjo42DT7p7XMuWXHHlnU=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-07-27 06:49:29 +00:00
|
|
|
description = "WIP window and afk watcher for wayland";
|
2023-10-19 13:55:26 +00:00
|
|
|
homepage = "https://github.com/ActivityWatch/aw-watcher-window-wayland";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ esau79p ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "aw-watcher-window-wayland";
|
2024-05-15 15:35:15 +00:00
|
|
|
platforms = platforms.linux;
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
}
|