1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

monitorets: init at 0.10.1 (#340770)

This commit is contained in:
Pol Dellaiera 2024-09-10 06:44:01 +02:00 committed by GitHub
commit dd224ea818
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,61 @@
{
lib,
python3Packages,
fetchFromGitHub,
meson,
ninja,
pkg-config,
gobject-introspection,
wrapGAppsHook4,
desktop-file-utils,
libadwaita,
}:
python3Packages.buildPythonApplication rec {
pname = "monitorets";
version = "0.10.1";
# built with meson, not a python format
pyproject = false;
src = fetchFromGitHub {
owner = "jorchube";
repo = "monitorets";
rev = "refs/tags/${version}";
hash = "sha256-Y6cd9Wf2IzHwdxzLUP/U4rervlPUr8s2gKSW8y5I7bg=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
wrapGAppsHook4
desktop-file-utils
];
buildInputs = [ libadwaita ];
dependencies = with python3Packages; [
pygobject3
xdg
psutil
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = {
description = "Simple and quick view at the usage of your computer resources";
homepage = "https://github.com/jorchube/monitorets";
license = with lib.licenses; [
gpl3Plus
cc0
];
mainProgram = "monitorets";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux;
};
}