1 { lib, buildGoModule, fetchFromGitHub, xorg, wayland }:
5 version = "unstable-2022-01-32";
7 src = fetchFromGitHub {
10 rev = "4ae88a6bf50e0b917541ddbcec1ff10ab77a0b15";
11 hash = "sha256-/0ilM1g3CNaseqV9i+cKWyzxvWnj+TFqazt+aYDtNVs=";
15 # Disable tests require network access
16 rm -f geoip/geoip_test.go
19 vendorHash = "sha256-Rx5/oORink2QtRcD+JqbyFroWYhuYmuYDzZ391R4Jsw=";
21 buildInputs = [ xorg.libX11 xorg.libXrandr wayland.dev ];
23 ldflags = [ "-s" "-w" ];
26 description = "Color temperature setting library and CLI that operates in a similar way to f.lux and Redshift";
27 homepage = "https://github.com/d4l3k/go-sct";
28 license = licenses.mit;
30 platforms = platforms.linux;