diff options
Diffstat (limited to 'pkgs/tools/X11/sct/default.nix')
-rw-r--r-- | pkgs/tools/X11/sct/default.nix | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/tools/X11/sct/default.nix b/pkgs/tools/X11/sct/default.nix index 5b361e924eb77..821a1c6070ef8 100644 --- a/pkgs/tools/X11/sct/default.nix +++ b/pkgs/tools/X11/sct/default.nix @@ -1,26 +1,26 @@ -{ lib, stdenv, fetchurl, libX11, libXrandr }: +{ lib, stdenv, fetchzip, libX11, libXrandr, xorgproto }: stdenv.mkDerivation rec { pname = "sct"; - version = "unstable-2015-11-16"; + version = "0.5"; - src = fetchurl { - url = "http://www.tedunangst.com/flak/files/sct.c"; - sha256 = "01f3ndx3s6d2qh2xmbpmhd4962dyh8yp95l87xwrs4plqdz6knhd"; + src = fetchzip { + url = "https://www.umaxx.net/dl/sct-0.5.tar.gz"; + sha256 = "sha256-nyYcdnCq8KcSUpc0HPCGzJI6NNrrTJLAHqPawfwPR/Q="; }; - unpackPhase = "cat ${src} > sct.c"; - patches = [ ./DISPLAY-segfault.patch ]; + buildInputs = [ libX11 libXrandr xorgproto ]; - buildInputs = [ libX11 libXrandr ]; - buildPhase = "cc sct.c -o sct -lm -lX11 -lXrandr"; + preInstall = '' + mkdir -p $out/bin $out/share/man/man1 + ''; - installPhase = "install -Dt $out/bin sct"; + makeFlags = [ "PREFIX=$(out)" ]; meta = with lib; { - homepage = "https://www.tedunangst.com/flak/post/sct-set-color-temperature"; + homepage = "https://www.umaxx.net/"; description = "A minimal utility to set display colour temperature"; - maintainers = [ maintainers.raskin ]; + maintainers = with maintainers; [ raskin somasis ]; license = licenses.publicDomain; platforms = with platforms; linux ++ freebsd ++ openbsd; }; |