2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenv, fetchzip, libX11, libXrandr, xorgproto }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "sct";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://www.umaxx.net/dl/sct-0.5.tar.gz";
|
|
|
|
sha256 = "sha256-nyYcdnCq8KcSUpc0HPCGzJI6NNrrTJLAHqPawfwPR/Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildInputs = [ libX11 libXrandr xorgproto ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://www.umaxx.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A minimal utility to set display colour temperature";
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ raskin somasis ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd;
|
|
|
|
};
|
|
|
|
}
|