about summary refs log tree commit diff
path: root/pkgs/tools/X11/sct/default.nix
blob: 9bf1f6d89a1262d9391d13c9d5b44ddbb7da68fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchzip, libX11, libXrandr, xorgproto }:

stdenv.mkDerivation rec {
  pname = "sct";
  version = "0.5";

  src = fetchzip {
    url = "https://www.umaxx.net/dl/sct-0.5.tar.gz";
    sha256 = "sha256-nyYcdnCq8KcSUpc0HPCGzJI6NNrrTJLAHqPawfwPR/Q=";
  };

  buildInputs = [ libX11 libXrandr xorgproto ];

  preInstall = ''
    mkdir -p $out/bin $out/share/man/man1
  '';

  makeFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    homepage = "https://www.umaxx.net/";
    description = "Minimal utility to set display colour temperature";
    maintainers = with maintainers; [ raskin somasis ];
    license = licenses.publicDomain;
    platforms = with platforms; linux ++ freebsd ++ openbsd;
  };
}