2022-05-30 09:17:46 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, xorg, wayland }:
|
2016-06-03 12:25:31 +00:00
|
|
|
|
2022-05-30 09:17:46 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "go-sct";
|
2022-05-30 09:17:46 +00:00
|
|
|
version = "unstable-2022-01-32";
|
2016-06-03 12:25:31 +00:00
|
|
|
|
2018-10-13 08:44:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "d4l3k";
|
|
|
|
repo = "go-sct";
|
2022-05-30 09:17:46 +00:00
|
|
|
rev = "4ae88a6bf50e0b917541ddbcec1ff10ab77a0b15";
|
2023-11-20 14:06:15 +00:00
|
|
|
hash = "sha256-/0ilM1g3CNaseqV9i+cKWyzxvWnj+TFqazt+aYDtNVs=";
|
2016-06-03 12:25:31 +00:00
|
|
|
};
|
|
|
|
|
2022-05-30 09:17:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Disable tests require network access
|
|
|
|
rm -f geoip/geoip_test.go
|
|
|
|
'';
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-Rx5/oORink2QtRcD+JqbyFroWYhuYmuYDzZ391R4Jsw=";
|
2022-05-30 09:17:46 +00:00
|
|
|
|
|
|
|
buildInputs = [ xorg.libX11 xorg.libXrandr wayland.dev ];
|
2016-06-03 12:25:31 +00:00
|
|
|
|
2022-05-30 09:17:46 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
2016-06-03 12:25:31 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-03 12:25:31 +00:00
|
|
|
description = "Color temperature setting library and CLI that operates in a similar way to f.lux and Redshift";
|
2022-05-30 09:17:46 +00:00
|
|
|
homepage = "https://github.com/d4l3k/go-sct";
|
2016-06-03 12:25:31 +00:00
|
|
|
license = licenses.mit;
|
2023-09-29 18:19:55 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-11-20 14:06:15 +00:00
|
|
|
platforms = platforms.linux;
|
2022-05-30 09:17:46 +00:00
|
|
|
mainProgram = "sct";
|
2016-06-03 12:25:31 +00:00
|
|
|
};
|
|
|
|
}
|