{gnome-,}resources: merge, fix up
This commit is contained in:
parent
c214b37af3
commit
e11317b03a
4 changed files with 13 additions and 74 deletions
|
@ -13,6 +13,8 @@
|
|||
, glib
|
||||
, gtk4
|
||||
, libadwaita
|
||||
, dmidecode
|
||||
, util-linux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
|
@ -50,6 +52,15 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
libadwaita
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/utils/memory.rs \
|
||||
--replace '"dmidecode"' '"${dmidecode}/bin/dmidecode"'
|
||||
substituteInPlace src/utils/cpu.rs \
|
||||
--replace '"lscpu"' '"${util-linux}/bin/lscpu"'
|
||||
substituteInPlace src/utils/memory.rs \
|
||||
--replace '"pkexec"' '"/run/wrappers/bin/pkexec"'
|
||||
'';
|
||||
|
||||
mesonFlags = [
|
||||
(lib.mesonOption "profile" "default")
|
||||
];
|
||||
|
@ -60,7 +71,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
homepage = "https://github.com/nokyan/resources";
|
||||
license = lib.licenses.gpl3Only;
|
||||
mainProgram = "resources";
|
||||
maintainers = with lib.maintainers; [ lukas-heiligenbrunner ];
|
||||
maintainers = with lib.maintainers; [ lukas-heiligenbrunner ewuuwe ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
{ fetchFromGitHub
|
||||
, stdenv
|
||||
, lib
|
||||
, appstream-glib
|
||||
, cargo
|
||||
, desktop-file-utils
|
||||
, meson
|
||||
, pkg-config
|
||||
, rustPlatform
|
||||
, rustc
|
||||
, glib
|
||||
, wrapGAppsHook4
|
||||
, systemd
|
||||
, polkit
|
||||
, dmidecode
|
||||
, gtk4
|
||||
, libadwaita
|
||||
, ninja
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnome-resources";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nokyan";
|
||||
repo = "resources";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-OVz1vsmOtH/5sEuyl2BfDqG2/9D1HGtHA0FtPntKQT0=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
hash = "sha256-SkCEA9CKqzy0wSIUj0DG6asIysD7G9i3nJ9jwhwAUqY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
desktop-file-utils
|
||||
appstream-glib
|
||||
meson
|
||||
ninja
|
||||
rustc
|
||||
cargo
|
||||
rustPlatform.cargoSetupHook
|
||||
wrapGAppsHook4
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk4
|
||||
libadwaita
|
||||
polkit
|
||||
systemd
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/utils/memory.rs \
|
||||
--replace '"dmidecode"' '"${dmidecode}/bin/dmidecode"'
|
||||
'';
|
||||
|
||||
mesonFlags = [ "-Dprofile=default" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/nokyan/resources";
|
||||
description = "Monitor your system resources and processes";
|
||||
license = licenses.gpl3Plus;
|
||||
mainProgram = "resources";
|
||||
maintainers = with maintainers; [ ewuuwe ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -323,6 +323,7 @@ mapAliases ({
|
|||
gnome-firmware-updater = gnome-firmware; # added 2022-04-14
|
||||
gnome-passwordsafe = gnome-secrets; # added 2022-01-30
|
||||
gnome-mpv = throw "'gnome-mpv' has been renamed to/replaced by 'celluloid'"; # Converted to throw 2023-09-10
|
||||
gnome-resources = resources; # added 2023-12-10
|
||||
gnome_user_docs = throw "'gnome_user_docs' has been renamed to/replaced by 'gnome-user-docs'"; # Converted to throw 2023-09-10
|
||||
|
||||
gnuradio-with-packages = gnuradio3_7.override {
|
||||
|
|
|
@ -8661,8 +8661,6 @@ with pkgs;
|
|||
|
||||
gnome-randr = callPackage ../tools/wayland/gnome-randr { };
|
||||
|
||||
gnome-resources = callPackage ../tools/system/gnome-resources { };
|
||||
|
||||
gnuapl = callPackage ../development/interpreters/gnu-apl { };
|
||||
|
||||
gnu-shepherd = callPackage ../misc/gnu-shepherd { };
|
||||
|
|
Loading…
Reference in a new issue