From c96c1c39723c1139648f21992580e6c199aa1f2f Mon Sep 17 00:00:00 2001 From: Brieuc Dubois Date: Thu, 30 May 2024 13:39:07 +0200 Subject: [PATCH] aw-awatcher: init at 0.2.7 --- maintainers/maintainer-list.nix | 6 ++++ pkgs/by-name/aw/aw-awatcher/package.nix | 38 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/by-name/aw/aw-awatcher/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1281af8fc69fe..52b0bbc8980b4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2663,6 +2663,12 @@ githubId = 24254289; name = "Payas Relekar"; }; + bhasher = { + email = "nixpkgs@bhasher.com"; + github = "BhasherBEL"; + githubId = 45831883; + name = "Brieuc Dubois"; + }; bhipple = { email = "bhipple@protonmail.com"; github = "bhipple"; diff --git a/pkgs/by-name/aw/aw-awatcher/package.nix b/pkgs/by-name/aw/aw-awatcher/package.nix new file mode 100644 index 0000000000000..86ff2ac03d09e --- /dev/null +++ b/pkgs/by-name/aw/aw-awatcher/package.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + pkg-config, + openssl, +}: +rustPlatform.buildRustPackage rec { + pname = "aw-awatcher"; + version = "v0.2.7"; + + src = fetchFromGitHub { + owner = "2e3s"; + repo = "awatcher"; + rev = version; + hash = "sha256-e65QDbK55q1Pbv/i7bDYRY78jgEUD1q6TLdKD8Gkswk="; + }; + + cargoLock = { + lockFile = src + "/Cargo.lock"; + outputHashes = { + "aw-client-rust-0.1.0" = "sha256-fCjVfmjrwMSa8MFgnC8n5jPzdaqSmNNdMRaYHNbs8Bo="; + }; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + meta = { + description = "Activity and idle watchers"; + homepage = "https://github.com/2e3s/awatcher"; + license = lib.licenses.mpl20; + maintainers = with lib.maintainers; [ bhasher ]; + mainProgram = "awatcher"; + platforms = lib.platforms.linux; + }; +}