1{ lib, fetchFromGitHub, buildGoModule, fetchpatch }:
2
3buildGoModule rec {
4 pname = "shadowfox";
5 version = "2.2.0";
6
7 src = fetchFromGitHub {
8 owner = "SrKomodo";
9 repo = "shadowfox-updater";
10 rev = "v${version}";
11 sha256 = "125mw70jidbp436arhv77201jdp6mpgqa2dzmrpmk55f9bf29sg6";
12 };
13
14 patches = [
15 # get vendoring to work with go1.20
16 # https://github.com/arguablykomodo/shadowfox-updater/pull/70
17 (fetchpatch {
18 url = "https://github.com/arguablykomodo/shadowfox-updater/commit/c16be00829373e0de7de47d6fb4d4c341fc36f75.patch";
19 hash = "sha256-buijhFLI8Sf9qBDntf689Xcpr6me+aVDoRqwSIcKKEw=";
20 })
21 ];
22
23 vendorHash = "sha256-3pHwyktSGxNM7mt0nPOe6uixS+bBJH9R8xqCyY6tlb0=";
24
25 doCheck = false;
26
27 ldflags = [
28 "-s"
29 "-w"
30 "-X main.tag=v${version}"
31 ];
32
33 meta = with lib; {
34 description = "Universal dark theme for Firefox while adhering to the modern design principles set by Mozilla";
35 homepage = "https://overdodactyl.github.io/ShadowFox/";
36 license = licenses.mit;
37 maintainers = with maintainers; [ infinisil ];
38 mainProgram = "shadowfox-updater";
39 };
40}