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