nixpkgs/pkgs/tools/X11/sct/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
713 B
Nix
Raw Normal View History

{ 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;
};
}