nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 45 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 fetchpatch, 6}: 7 8buildGoModule rec { 9 pname = "shadowfox"; 10 version = "2.2.0"; 11 12 src = fetchFromGitHub { 13 owner = "SrKomodo"; 14 repo = "shadowfox-updater"; 15 rev = "v${version}"; 16 sha256 = "125mw70jidbp436arhv77201jdp6mpgqa2dzmrpmk55f9bf29sg6"; 17 }; 18 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 ]; 27 28 vendorHash = "sha256-3pHwyktSGxNM7mt0nPOe6uixS+bBJH9R8xqCyY6tlb0="; 29 30 doCheck = false; 31 32 ldflags = [ 33 "-s" 34 "-w" 35 "-X main.tag=v${version}" 36 ]; 37 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 }; 45}