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