3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/X11/go-sct/default.nix

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

33 lines
885 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, xorg, wayland }:
2016-06-03 13:25:31 +01:00
buildGoModule rec {
pname = "go-sct";
version = "unstable-2022-01-32";
2016-06-03 13:25:31 +01:00
2018-10-13 09:44:56 +01:00
src = fetchFromGitHub {
owner = "d4l3k";
repo = "go-sct";
rev = "4ae88a6bf50e0b917541ddbcec1ff10ab77a0b15";
sha256 = "sha256-/0ilM1g3CNaseqV9i+cKWyzxvWnj+TFqazt+aYDtNVs=";
2016-06-03 13:25:31 +01:00
};
postPatch = ''
# Disable tests require network access
rm -f geoip/geoip_test.go
'';
vendorSha256 = "sha256-Rx5/oORink2QtRcD+JqbyFroWYhuYmuYDzZ391R4Jsw=";
buildInputs = [ xorg.libX11 xorg.libXrandr wayland.dev ];
2016-06-03 13:25:31 +01:00
ldflags = [ "-s" "-w" ];
2016-06-03 13:25:31 +01:00
meta = with lib; {
2016-06-03 13:25:31 +01:00
description = "Color temperature setting library and CLI that operates in a similar way to f.lux and Redshift";
homepage = "https://github.com/d4l3k/go-sct";
2016-06-03 13:25:31 +01:00
license = licenses.mit;
2021-06-29 20:25:45 +01:00
maintainers = with maintainers; [ cstrahan ];
mainProgram = "sct";
2016-06-03 13:25:31 +01:00
};
}