nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 44 lines 899 B view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 qtbase, 8 qttools, 9 ddcutil, 10}: 11 12mkDerivation rec { 13 pname = "ddcui"; 14 version = "0.6.0"; 15 16 src = fetchFromGitHub { 17 owner = "rockowitz"; 18 repo = "ddcui"; 19 rev = "v${version}"; 20 sha256 = "sha256-KcivAoPV/4TihVkwYgq3bWWhG5E8enVSD3bhObl++I0="; 21 }; 22 23 nativeBuildInputs = [ 24 # Using cmake instead of the also-supported qmake because ddcui's qmake 25 # file is not currently written to support PREFIX installations. 26 cmake 27 pkg-config 28 ]; 29 30 buildInputs = [ 31 qtbase 32 qttools 33 ddcutil 34 ]; 35 36 meta = with lib; { 37 description = "Graphical user interface for ddcutil - control monitor settings"; 38 mainProgram = "ddcui"; 39 homepage = "https://www.ddcutil.com/ddcui_main/"; 40 license = licenses.gpl2; 41 maintainers = with maintainers; [ nh2 ]; 42 platforms = with platforms; linux; 43 }; 44}