67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
|
{ 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;
|
||
|
};
|
||
|
})
|