Files
nixpkgs/pkgs/by-name/go/go-sct/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
918 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
xorg,
wayland,
}:
buildGoModule {
pname = "go-sct";
version = "unstable-2022-01-32";
src = fetchFromGitHub {
owner = "d4l3k";
repo = "go-sct";
rev = "4ae88a6bf50e0b917541ddbcec1ff10ab77a0b15";
hash = "sha256-/0ilM1g3CNaseqV9i+cKWyzxvWnj+TFqazt+aYDtNVs=";
};
postPatch = ''
# Disable tests require network access
rm -f geoip/geoip_test.go
'';
vendorHash = "sha256-Rx5/oORink2QtRcD+JqbyFroWYhuYmuYDzZ391R4Jsw=";
buildInputs = [
xorg.libX11
xorg.libXrandr
wayland.dev
];
ldflags = [
"-s"
"-w"
];
meta = with lib; {
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";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "sct";
};
}