From b3972247dea23bff3cf1b5b24fbfdc8b3a7d99bf Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Fri, 7 Jun 2024 22:24:59 +0200 Subject: [PATCH] assetfinder: migrate to buildGoModule Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/as/assetfinder/package.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/as/assetfinder/package.nix b/pkgs/by-name/as/assetfinder/package.nix index f307b5ec62ed..46a2daa1723a 100644 --- a/pkgs/by-name/as/assetfinder/package.nix +++ b/pkgs/by-name/as/assetfinder/package.nix @@ -1,14 +1,12 @@ { lib , fetchFromGitHub -, buildGoPackage +, buildGoModule }: -buildGoPackage rec { +buildGoModule rec { pname = "assetfinder"; version = "0.1.1"; - goPackagePath = "github.com/tomnomnom/assetfinder"; - src = fetchFromGitHub { owner = "tomnomnom"; repo = "assetfinder"; @@ -16,6 +14,12 @@ buildGoPackage rec { hash = "sha256-7+YF1VXBcFehKw9JzurmXNu8yeZPdqfQEuaqwtR4AuA="; }; + postPatch = '' + go mod init github.com/tomnomnom/assetfinder + ''; + + vendorHash = null; + meta = with lib; { homepage = "https://github.com/tomnomnom/assetfinder"; description = "Find domains and subdomains related to a given domain";