biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / shadowfox / default.nix
blobd9fca5d4011e2664adb8b514b2cac2ba4dce9b86
1 { lib, fetchFromGitHub, buildGoModule, fetchpatch }:
3 buildGoModule rec {
4   pname = "shadowfox";
5   version = "2.2.0";
7   src = fetchFromGitHub {
8     owner = "SrKomodo";
9     repo = "shadowfox-updater";
10     rev = "v${version}";
11     sha256 = "125mw70jidbp436arhv77201jdp6mpgqa2dzmrpmk55f9bf29sg6";
12   };
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   ];
23   vendorHash = "sha256-3pHwyktSGxNM7mt0nPOe6uixS+bBJH9R8xqCyY6tlb0=";
25   doCheck = false;
27   ldflags = [
28     "-s"
29     "-w"
30     "-X main.tag=v${version}"
31   ];
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 = [ ];
38     mainProgram = "shadowfox-updater";
39   };