Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
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;
|
|
};
|
|
}
|