2022-03-08 05:01:53 +00:00
|
|
|
{ lib, stdenv, fetchzip, libX11, libXrandr, xorgproto }:
|
2017-09-26 11:04:27 +00:00
|
|
|
|
2015-11-16 22:49:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-29 18:24:13 +00:00
|
|
|
pname = "sct";
|
2022-03-08 05:01:53 +00:00
|
|
|
version = "0.5";
|
2017-09-26 11:04:27 +00:00
|
|
|
|
2022-03-08 05:01:53 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://www.umaxx.net/dl/sct-0.5.tar.gz";
|
|
|
|
sha256 = "sha256-nyYcdnCq8KcSUpc0HPCGzJI6NNrrTJLAHqPawfwPR/Q=";
|
2015-11-16 22:49:01 +00:00
|
|
|
};
|
2017-09-26 11:04:27 +00:00
|
|
|
|
2022-03-08 05:01:53 +00:00
|
|
|
buildInputs = [ libX11 libXrandr xorgproto ];
|
2017-09-26 11:04:27 +00:00
|
|
|
|
2022-03-08 05:01:53 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
'';
|
2017-09-26 11:04:27 +00:00
|
|
|
|
2022-03-08 05:01:53 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2017-09-26 11:04:27 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-03-08 05:01:53 +00:00
|
|
|
homepage = "https://www.umaxx.net/";
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Minimal utility to set display colour temperature";
|
2022-03-08 05:01:53 +00:00
|
|
|
maintainers = with maintainers; [ raskin somasis ];
|
2017-09-26 11:04:27 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd;
|
2015-11-16 22:49:01 +00:00
|
|
|
};
|
|
|
|
}
|