Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

69 lines
1.3 KiB
Nix

{
lib,
stdenv,
boost,
fetchFromGitHub,
git,
makeWrapper,
meson,
ninja,
pkg-config,
python3,
qtbase,
qtcharts,
tuxclocker-plugins,
tuxclocker-without-unfree,
wrapQtAppsHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tuxclocker";
version = "1.5.1";
src = fetchFromGitHub {
owner = "Lurkki14";
repo = "tuxclocker";
fetchSubmodules = true;
rev = finalAttrs.version;
hash = "sha256-QLKLqTCpVMWxlDINa8Bo1vgCDcjwovoaXUs/PdMnxv0=";
};
nativeBuildInputs = [
git
makeWrapper
meson
ninja
pkg-config
wrapQtAppsHook
];
buildInputs = [
boost
qtbase
qtcharts
];
postInstall = ''
wrapProgram "$out/bin/tuxclockerd" \
--prefix "TEXTDOMAINDIR" : "${tuxclocker-plugins}/share/locale" \
--prefix "TUXCLOCKER_PLUGIN_PATH" : "${tuxclocker-plugins}/lib/tuxclocker/plugins" \
--prefix "PYTHONPATH" : "${python3.pkgs.hwdata}/${python3.sitePackages}"
'';
mesonFlags = [
"-Dplugins=false"
];
passthru.tests = {
inherit tuxclocker-without-unfree;
};
meta = {
description = "Qt overclocking tool for GNU/Linux";
homepage = "https://github.com/Lurkki14/tuxclocker";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ lurkki ];
platforms = lib.platforms.linux;
};
})