From 183f87466de7ee1a590e5ead855f53465a72b5e2 Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Thu, 30 Nov 2023 11:27:59 +0100 Subject: [PATCH 1/2] maintainsers: add lukas-heiligenbrunner --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 141a79b38442..c33b9eb1124c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10746,6 +10746,12 @@ fingerprint = "97A0 AE5E 03F3 499B 7D7A 65C6 76A4 1432 37EF 5817"; }]; }; + lukas-heiligenbrunner = { + email = "lukas.heiligenbrunner@gmail.com"; + github = "lukas-heiligenbrunner"; + githubId = 30468956; + name = "Lukas Heiligenbrunner"; + }; lukaswrz = { email = "lukas@wrz.one"; github = "lukaswrz"; From ed03ef9581aec66515be7d57aa002dacac9bcd48 Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Thu, 30 Nov 2023 11:28:48 +0100 Subject: [PATCH 2/2] resources: init at 1.2.1 --- pkgs/by-name/re/resources/package.nix | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 pkgs/by-name/re/resources/package.nix diff --git a/pkgs/by-name/re/resources/package.nix b/pkgs/by-name/re/resources/package.nix new file mode 100644 index 000000000000..c3fc15b9f394 --- /dev/null +++ b/pkgs/by-name/re/resources/package.nix @@ -0,0 +1,66 @@ +{ lib +, stdenv +, fetchFromGitHub +, appstream-glib +, cargo +, desktop-file-utils +, meson +, ninja +, pkg-config +, rustPlatform +, rustc +, wrapGAppsHook4 +, glib +, gtk4 +, libadwaita +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "resources"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "nokyan"; + repo = "resources"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-OVz1vsmOtH/5sEuyl2BfDqG2/9D1HGtHA0FtPntKQT0="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit (finalAttrs) src; + name = "resources-${finalAttrs.version}"; + hash = "sha256-MNYKfvbLQPWm7MKS5zYGrc+aoC9WeU5FTftkCrogZg0="; + }; + + nativeBuildInputs = [ + appstream-glib + desktop-file-utils + meson + ninja + pkg-config + wrapGAppsHook4 + rustPlatform.cargoSetupHook + cargo + rustc + ]; + + buildInputs = [ + glib + gtk4 + libadwaita + ]; + + mesonFlags = [ + (lib.mesonOption "profile" "default") + ]; + + meta = { + changelog = "https://github.com/nokyan/resources/releases/tag/${finalAttrs.version}"; + description = "Monitor your system resources and processes"; + homepage = "https://github.com/nokyan/resources"; + license = lib.licenses.gpl3Only; + mainProgram = "resources"; + maintainers = with lib.maintainers; [ lukas-heiligenbrunner ]; + platforms = lib.platforms.linux; + }; +})