yeetgif: use buildGoModule

+16 -5
+16 -5
pkgs/applications/graphics/yeetgif/default.nix
··· 1 - { buildGoPackage, fetchFromGitHub, lib }: 1 + { buildGoModule, fetchFromGitHub, fetchpatch, lib }: 2 2 3 - buildGoPackage rec { 3 + buildGoModule rec { 4 4 pname = "yeetgif"; 5 5 version = "1.23.6"; 6 - 7 - goPackagePath = "github.com/sgreben/yeetgif"; 8 6 9 7 src = fetchFromGitHub { 10 8 owner = "sgreben"; 11 9 repo = pname; 12 10 rev = version; 13 - sha256 = "05z1ylsra60bb4cvr383g9im94zsph1dgicqbv5p73qgs634ckk7"; 11 + hash = "sha256-Z05GhtEPj3PLXpjF1wK8+pNUY3oDjbwZWQsYlTX14Rc="; 14 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" ]; 15 26 16 27 meta = with lib; { 17 28 description = "gif effects CLI. single binary, no dependencies. linux, osx, windows. #1 workplace productivity booster. #yeetgif #eggplant #golang";