Back to official awatcher pkg

This commit is contained in:
Tristan D. 2025-03-17 13:09:03 +01:00
parent 337b96aee9
commit 86fffcce36
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4
3 changed files with 2 additions and 4719 deletions

View file

@ -9,7 +9,7 @@
# aw-webui # aw-webui
# python312Packages.aw-core # python312Packages.aw-core
aw-server-rust aw-server-rust
my.awatcher awatcher
]; ];
programs.firefox.profiles.default.extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [ programs.firefox.profiles.default.extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
@ -20,7 +20,7 @@
enable = true; enable = true;
package = pkgs.aw-server-rust; package = pkgs.aw-server-rust;
watchers = { watchers = {
awatcher.package = pkgs.my.awatcher; awatcher.package = pkgs.awatcher;
}; };
}; };

4662
pkgs/awatcher.Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,55 +0,0 @@
# --- parts/pkgs/awatcher.nix
#
# Author: tsandrini <tomas.sandrini@seznam.cz>
# URL: https://github.com/tsandrini/tensorfiles
# License: MIT
#
# 888 .d888 d8b 888
# 888 d88P" Y8P 888
# 888 888 888
# 888888 .d88b. 88888b. .d8888b .d88b. 888d888 888888 888 888 .d88b. .d8888b
# 888 d8P Y8b 888 "88b 88K d88""88b 888P" 888 888 888 d8P Y8b 88K
# 888 88888888 888 888 "Y8888b. 888 888 888 888 888 888 88888888 "Y8888b.
# Y88b. Y8b. 888 888 X88 Y88..88P 888 888 888 888 Y8b. X88
# "Y888 "Y8888 888 888 88888P' "Y88P" 888 888 888 888 "Y8888 88888P'
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, ...
}:
rustPlatform.buildRustPackage rec {
pname = "awatcher";
# TODO Update
version = "0.2.7";
src = fetchFromGitHub {
owner = "2e3s";
repo = pname;
rev = "v${version}";
hash = "sha256-e65QDbK55q1Pbv/i7bDYRY78jgEUD1q6TLdKD8Gkswk=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# NOTE needed due to Cargo.lock containing git dependencies
cargoLock = {
lockFile = ./awatcher.Cargo.lock;
outputHashes = {
"aw-client-rust-0.1.0" = "sha256-fCjVfmjrwMSa8MFgnC8n5jPzdaqSmNNdMRaYHNbs8Bo=";
};
};
meta = with lib; {
description = "Awatcher is a window activity and idle watcher for ActivityWatcher with an optional tray and UI for statistics.";
homepage = "https://github.com/2e3s/awatcher";
changelog = "https://github.com/2e3s/awatcher/releases/tag/${version}";
license = licenses.mpl20;
maintainers = [ ]; # TODO add myself ?
platforms = platforms.linux;
mainProgram = pname;
};
}