From f6281356b46526e11c47ed3240ed733fdac81e59 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 12 Jun 2022 02:55:48 +0300 Subject: [PATCH] elfinfo: use buildGoModule --- pkgs/development/tools/misc/elfinfo/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/elfinfo/default.nix b/pkgs/development/tools/misc/elfinfo/default.nix index e3ee51c58fdc..b9a6dc0c39b4 100644 --- a/pkgs/development/tools/misc/elfinfo/default.nix +++ b/pkgs/development/tools/misc/elfinfo/default.nix @@ -1,20 +1,25 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib +, buildGoModule +, fetchFromGitHub +}: -buildGoPackage rec { +buildGoModule rec { pname = "elfinfo"; version = "1.1.0"; - goPackagePath = "github.com/xyproto/elfinfo"; src = fetchFromGitHub { - rev = version; owner = "xyproto"; repo = "elfinfo"; + rev = version; sha256 = "1n8bg0rcq9fqa6rdnk6x9ngvm59hcayblkpjv9j5myn2vmm6fv8m"; }; + vendorSha256 = null; + meta = with lib; { description = "Small utility for showing information about ELF files"; homepage = "https://elfinfo.roboticoverlords.org/"; + changelog = "https://github.com/xyproto/elfinfo/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ dtzWill ]; };