2018-10-13 09:44:56 +01:00
|
|
|
{ stdenv, xorg, buildGoPackage, fetchFromGitHub }:
|
2016-06-03 13:25:31 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "go-sct-${version}";
|
2018-10-13 09:44:56 +01:00
|
|
|
version = "20180605-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "eb1e851f2d5017038d2b8e3653645c36d3a279f4";
|
2016-06-03 13:25:31 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/d4l3k/go-sct";
|
|
|
|
|
2018-10-13 09:44:56 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-03 13:25:31 +01:00
|
|
|
inherit rev;
|
2018-10-13 09:44:56 +01:00
|
|
|
owner = "d4l3k";
|
|
|
|
repo = "go-sct";
|
|
|
|
sha256 = "16z2ml9x424cnliazyxlw7pm7q64pppjam3dnmq2xab0wlbbm3nm";
|
2016-06-03 13:25:31 +01:00
|
|
|
};
|
|
|
|
|
2016-09-10 11:04:13 +01:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-03 13:25:31 +01:00
|
|
|
|
|
|
|
buildInputs = [ xorg.libX11 xorg.libXrandr ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Color temperature setting library and CLI that operates in a similar way to f.lux and Redshift";
|
|
|
|
license = licenses.mit;
|
2018-10-13 09:44:56 +01:00
|
|
|
maintainers = with maintainers; [ rvolosatovs cstrahan ];
|
|
|
|
platforms = platforms.linux ++ platforms.windows;
|
2016-06-03 13:25:31 +01:00
|
|
|
};
|
|
|
|
}
|