1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

mission-center: 0.3.3 -> 0.4.1

Changelog: https://gitlab.com/mission-center-devs/mission-center/-/releases/v0.4.1
This commit is contained in:
Gaetan Lepage 2023-12-08 13:48:46 +01:00
parent 236bcf3576
commit c5dd7489e9
3 changed files with 596 additions and 1071 deletions

File diff suppressed because it is too large Load diff

View file

@ -16,8 +16,8 @@
, blueprint-compiler
, cairo
, cmake
, dbus
, desktop-file-utils
, dmidecode
, gdk-pixbuf
, gettext
, glib
@ -31,25 +31,27 @@
, sqlite
, udev
, wayland
, dmidecode
, vulkan-loader
}:
let
nvtop = fetchFromGitHub {
owner = "Syllo";
repo = "nvtop";
rev = "be47f8c560487efc6e6a419d59c69bfbdb819324";
hash = "sha256-MdaZYLxCuVX4LvbwBYNfHHoJWqZAy4J8NBK7Guh2whc=";
rev = "45a1796375cd617d16167869bb88e5e69c809468";
hash = "sha256-1P9pWXhgTHogO0DztxOsFKNwvTRRfDL3nzGmMANMC9w=";
};
in
stdenv.mkDerivation rec {
pname = "mission-center";
version = "0.3.3";
version = "0.4.1";
src = fetchFromGitLab {
owner = "mission-center-devs";
repo = "mission-center";
rev = "v${version}";
hash = "sha256-xLyCLKUk21MvswtPUKm41Hr34vTzCMVQNTaAkuhSGLc=";
hash = "sha256-RENB5rD+DZrmE6awWRT9PGed2bJFDEAEqHh1tBjqWrY=";
};
cargoDeps = symlinkJoin {
@ -58,7 +60,7 @@ stdenv.mkDerivation rec {
(rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"pathfinder_canvas-0.5.0" = "sha256-k2Sj69hWA0UzRfv91aG1TAygVIuOX3gmipcDbuZxxc8=";
"pathfinder_canvas-0.5.0" = "sha256-qEp16TVggPtvFvDuUyWsS6rH6MeO6FW0K6BnACghaCg=";
};
})
(rustPlatform.importCargoLock {
@ -86,8 +88,8 @@ stdenv.mkDerivation rec {
blueprint-compiler
cairo
cmake
dbus
desktop-file-utils
dmidecode
gdk-pixbuf
gettext
glib
@ -104,14 +106,23 @@ stdenv.mkDerivation rec {
];
postPatch = ''
substituteInPlace src/main.rs \
substituteInPlace src/sys_info_v2/gatherer.rs \
--replace '"missioncenter-gatherer"' '"${placeholder "out"}/bin/missioncenter-gatherer"'
substituteInPlace src/sys_info_v2/mem_info.rs \
--replace '"dmidecode"' '"${dmidecode}/bin/dmidecode"'
substituteInPlace $cargoDepsCopy/gl_loader-*/src/glad.c \
--replace "libGL.so.1" "${libGL}/lib/libGL.so.1"
substituteInPlace $cargoDepsCopy/ash-*/src/entry.rs \
--replace '"libvulkan.so.1"' '"${vulkan-loader}/lib/libvulkan.so.1"'
SRC_GATHERER=$NIX_BUILD_TOP/source/src/sys_info_v2/gatherer
SRC_GATHERER_NVTOP=$SRC_GATHERER/3rdparty/nvtop
substituteInPlace $SRC_GATHERER_NVTOP/nvtop.json \
--replace "nvtop-be47f8c560487efc6e6a419d59c69bfbdb819324" "nvtop-src"
--replace "nvtop-45a1796375cd617d16167869bb88e5e69c809468" "nvtop-src"
GATHERER_BUILD_DEST=$NIX_BUILD_TOP/source/build/src/sys_info_v2/gatherer/src/debug/build/native
mkdir -p $GATHERER_BUILD_DEST
@ -128,10 +139,6 @@ stdenv.mkDerivation rec {
patchShebangs data/hwdb/generate_hwdb.py
'';
postInstall = ''
wrapProgram $out/bin/missioncenter --prefix PATH : $out/bin:${dmidecode}/bin
'';
meta = with lib; {
description = "Monitor your CPU, Memory, Disk, Network and GPU usage";
homepage = "https://gitlab.com/mission-center-devs/mission-center";

File diff suppressed because it is too large Load diff