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