3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/X11/sct/default.nix
Kylie McClain a42cdc07fc
sct: unstable-2015-11-16 -> 0.5
Switch to using umaxx maintained version, the same version provided in
OpenBSD's ports, the same version linked in tedu@'s original blog post
at the end.
2022-06-06 11:11:01 -04:00

28 lines
715 B
Nix

{ 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 = "A minimal utility to set display colour temperature";
maintainers = with maintainers; [ raskin somasis ];
license = licenses.publicDomain;
platforms = with platforms; linux ++ freebsd ++ openbsd;
};
}