yeetgif: use buildGoModule

+16 -5
+16 -5
pkgs/applications/graphics/yeetgif/default.nix
··· 1 - { buildGoPackage, fetchFromGitHub, lib }: 2 3 - buildGoPackage rec { 4 pname = "yeetgif"; 5 version = "1.23.6"; 6 - 7 - goPackagePath = "github.com/sgreben/yeetgif"; 8 9 src = fetchFromGitHub { 10 owner = "sgreben"; 11 repo = pname; 12 rev = version; 13 - sha256 = "05z1ylsra60bb4cvr383g9im94zsph1dgicqbv5p73qgs634ckk7"; 14 }; 15 16 meta = with lib; { 17 description = "gif effects CLI. single binary, no dependencies. linux, osx, windows. #1 workplace productivity booster. #yeetgif #eggplant #golang";
··· 1 + { buildGoModule, fetchFromGitHub, fetchpatch, lib }: 2 3 + buildGoModule rec { 4 pname = "yeetgif"; 5 version = "1.23.6"; 6 7 src = fetchFromGitHub { 8 owner = "sgreben"; 9 repo = pname; 10 rev = version; 11 + hash = "sha256-Z05GhtEPj3PLXpjF1wK8+pNUY3oDjbwZWQsYlTX14Rc="; 12 }; 13 + 14 + deleteVendor = true; 15 + vendorHash = "sha256-LhkOMCuYO4GHezk21SlI2dP1UPmBp4bv2SdNbUQMKsI="; 16 + 17 + patches = [ 18 + # Add Go Modules support 19 + (fetchpatch { 20 + url = "https://github.com/sgreben/yeetgif/commit/5d2067b9832898c2b1ac51bf6a5f107619038270.patch"; 21 + hash = "sha256-3eyqbpPyuQHjAN5mjQyZo0xY6L683T5Ytyx02II/iU4="; 22 + }) 23 + ]; 24 + 25 + ldflags = [ "-s" "-w" ]; 26 27 meta = with lib; { 28 description = "gif effects CLI. single binary, no dependencies. linux, osx, windows. #1 workplace productivity booster. #yeetgif #eggplant #golang";