awatcher: init at 0.3.0

fix: use 'awatcher' as the opposite of the 'pname' variable for the repository name

Co-authored-by: Robert Schütz <github@dotlambda.de>

style: fix indentation

Co-authored-by: Robert Schütz <github@dotlambda.de>

feat: add "awatcher" in "meta.mainProgram"

fix: add linux as the unique plataform supported

Co-authored-by: Robert Schütz <github@dotlambda.de>

fix: always build package since it has no extra dependencies

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

chore: disable package tests as no tests exist
This commit is contained in:
aikooo7 2024-02-10 20:22:22 +00:00
parent 2d7275ff15
commit dd723b0155
No known key found for this signature in database
GPG Key ID: 67AECB235E1C5DB9
2 changed files with 4588 additions and 0 deletions

4543
pkgs/by-name/aw/awatcher/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,45 @@
{ lib
, rustPlatform
, fetchFromGitHub
, openssl
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "awatcher";
version = "0.3.0";
src = fetchFromGitHub {
owner = "2e3s";
repo = "awatcher";
rev = "v${version}";
hash = "sha256-G7UH2JcKseGZUA+Ac431cTXUP7rxWxYABfq05/ENjUM=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
doCheck = false;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"aw-client-rust-0.1.0" = "sha256-yliRLPM33GWTPcNBDNuKMOkNOMNfD+TI5nRkh+5YSnw=";
};
};
meta = with lib; {
description = "Activity and idle watchers";
longDescription = ''
Awatcher is a window activity and idle watcher with an optional tray and UI for statistics. The goal is to compensate
the fragmentation of desktop environments on Linux by supporting all reportable environments, to add more
flexibility to reports with filters, and to have better UX with the distribution by a single executable.
'';
downloadPage = "https://github.com/2e3s/awatcher/releases";
homepage = "https://github.com/2e3s/awatcher";
license = licenses.mpl20;
mainProgram = "awatcher";
maintainers = [ maintainers.aikooo7 ];
platforms = platforms.linux;
};
}