nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 68 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 boost, 5 fetchFromGitHub, 6 git, 7 makeWrapper, 8 meson, 9 ninja, 10 pkg-config, 11 python3, 12 qtbase, 13 qtcharts, 14 tuxclocker-plugins, 15 tuxclocker-without-unfree, 16 wrapQtAppsHook, 17}: 18 19stdenv.mkDerivation (finalAttrs: { 20 pname = "tuxclocker"; 21 version = "1.5.1"; 22 23 src = fetchFromGitHub { 24 owner = "Lurkki14"; 25 repo = "tuxclocker"; 26 fetchSubmodules = true; 27 rev = finalAttrs.version; 28 hash = "sha256-QLKLqTCpVMWxlDINa8Bo1vgCDcjwovoaXUs/PdMnxv0="; 29 }; 30 31 nativeBuildInputs = [ 32 git 33 makeWrapper 34 meson 35 ninja 36 pkg-config 37 wrapQtAppsHook 38 ]; 39 40 buildInputs = [ 41 boost 42 qtbase 43 qtcharts 44 ]; 45 46 postInstall = '' 47 wrapProgram "$out/bin/tuxclockerd" \ 48 --prefix "TEXTDOMAINDIR" : "${tuxclocker-plugins}/share/locale" \ 49 --prefix "TUXCLOCKER_PLUGIN_PATH" : "${tuxclocker-plugins}/lib/tuxclocker/plugins" \ 50 --prefix "PYTHONPATH" : "${python3.pkgs.hwdata}/${python3.sitePackages}" 51 ''; 52 53 mesonFlags = [ 54 "-Dplugins=false" 55 ]; 56 57 passthru.tests = { 58 inherit tuxclocker-without-unfree; 59 }; 60 61 meta = with lib; { 62 description = "Qt overclocking tool for GNU/Linux"; 63 homepage = "https://github.com/Lurkki14/tuxclocker"; 64 license = licenses.gpl3Only; 65 maintainers = with maintainers; [ lurkki ]; 66 platforms = platforms.linux; 67 }; 68})