3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #188986 from dit7ya/stacer

stacer: init at 1.1.0
This commit is contained in:
Azat Bahawi 2023-07-30 10:11:38 +03:00 committed by GitHub
commit d88c1d511a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, qtcharts
, qttools
, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "stacer";
version = "1.1.0";
src = fetchFromGitHub {
owner = "oguzhaninan";
repo = pname;
rev = "v${version}";
sha256 = "0qndzzkbq6abapvwq202kva8j619jdn9977sbqmmfs9zkjz4mbsd";
};
postPatch = ''
substituteInPlace stacer/Managers/app_manager.cpp \
--replace 'qApp->applicationDirPath() + "/translations"' \
'QStandardPaths::locate(QStandardPaths::AppDataLocation, "translations", QStandardPaths::LocateDirectory)'
'';
buildInputs = [
qtcharts
qttools
];
nativeBuildInputs = [ cmake wrapQtAppsHook ];
preConfigure = ''
lrelease stacer/stacer.pro
'';
postInstall = ''
install -Dm644 ../translations/*.qm -t $out/share/stacer/translations
'';
meta = with lib; {
description = "Linux System Optimizer and Monitoring";
homepage = "https://github.com/oguzhaninan/stacer";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dit7ya ];
platforms = platforms.linux;
};
}

View file

@ -13208,6 +13208,8 @@ with pkgs;
stabber = callPackage ../misc/stabber { };
stacer = libsForQt5.callPackage ../tools/system/stacer { };
starcharts = callPackage ../servers/misc/starcharts { };
staticjinja = with python3.pkgs; toPythonApplication staticjinja;