tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
go-sct: 20180605-eb1e851 -> unstable-2022-01-32
Aaron Jheng
3 years ago
7844de53
170394ab
+16
-22
2 changed files
expand all
collapse all
unified
split
pkgs
tools
X11
go-sct
default.nix
deps.nix
+16
-11
pkgs/tools/X11/go-sct/default.nix
···
1
1
-
{ lib, xorg, buildGoPackage, fetchFromGitHub }:
1
1
+
{ lib, buildGoModule, fetchFromGitHub, xorg, wayland }:
2
2
3
3
-
buildGoPackage rec {
3
3
+
buildGoModule rec {
4
4
pname = "go-sct";
5
5
-
version = "20180605-${lib.strings.substring 0 7 rev}";
6
6
-
rev = "eb1e851f2d5017038d2b8e3653645c36d3a279f4";
7
7
-
8
8
-
goPackagePath = "github.com/d4l3k/go-sct";
5
5
+
version = "unstable-2022-01-32";
9
6
10
7
src = fetchFromGitHub {
11
11
-
inherit rev;
12
8
owner = "d4l3k";
13
9
repo = "go-sct";
14
14
-
sha256 = "16z2ml9x424cnliazyxlw7pm7q64pppjam3dnmq2xab0wlbbm3nm";
10
10
+
rev = "4ae88a6bf50e0b917541ddbcec1ff10ab77a0b15";
11
11
+
sha256 = "sha256-/0ilM1g3CNaseqV9i+cKWyzxvWnj+TFqazt+aYDtNVs=";
15
12
};
16
13
17
17
-
goDeps = ./deps.nix;
14
14
+
postPatch = ''
15
15
+
# Disable tests require network access
16
16
+
rm -f geoip/geoip_test.go
17
17
+
'';
18
18
+
19
19
+
vendorSha256 = "sha256-Rx5/oORink2QtRcD+JqbyFroWYhuYmuYDzZ391R4Jsw=";
20
20
+
21
21
+
buildInputs = [ xorg.libX11 xorg.libXrandr wayland.dev ];
18
22
19
19
-
buildInputs = [ xorg.libX11 xorg.libXrandr ];
23
23
+
ldflags = [ "-s" "-w" ];
20
24
21
25
meta = with lib; {
22
26
description = "Color temperature setting library and CLI that operates in a similar way to f.lux and Redshift";
27
27
+
homepage = "https://github.com/d4l3k/go-sct";
23
28
license = licenses.mit;
24
29
maintainers = with maintainers; [ cstrahan ];
25
25
-
platforms = platforms.linux ++ platforms.windows;
30
30
+
mainProgram = "sct";
26
31
};
27
32
}
-11
pkgs/tools/X11/go-sct/deps.nix
···
1
1
-
[
2
2
-
{
3
3
-
goPackagePath = "github.com/cpucycle/astrotime";
4
4
-
fetch = {
5
5
-
type = "git";
6
6
-
url = "https://github.com/cpucycle/astrotime";
7
7
-
rev = "9c7d514efdb561775030eaf8f1a9ae6bddb3a2ca";
8
8
-
sha256 = "024sc7g55v4s54irssm5wsn74sr2k2ynsm6z16w47q66cxhgvby1";
9
9
-
};
10
10
-
}
11
11
-
]