Merge pull request #176612 from azahi/elfinfo

elfinfo: use buildGoModule
This commit is contained in:
ajs124 2022-06-22 18:20:55 +02:00 committed by GitHub
commit 2f853e090c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,25 @@
{ lib, buildGoPackage, fetchFromGitHub }: { lib
, buildGoModule
, fetchFromGitHub
}:
buildGoPackage rec { buildGoModule rec {
pname = "elfinfo"; pname = "elfinfo";
version = "1.1.0"; version = "1.1.0";
goPackagePath = "github.com/xyproto/elfinfo";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = version;
owner = "xyproto"; owner = "xyproto";
repo = "elfinfo"; repo = "elfinfo";
rev = version;
sha256 = "1n8bg0rcq9fqa6rdnk6x9ngvm59hcayblkpjv9j5myn2vmm6fv8m"; sha256 = "1n8bg0rcq9fqa6rdnk6x9ngvm59hcayblkpjv9j5myn2vmm6fv8m";
}; };
vendorSha256 = null;
meta = with lib; { meta = with lib; {
description = "Small utility for showing information about ELF files"; description = "Small utility for showing information about ELF files";
homepage = "https://elfinfo.roboticoverlords.org/"; homepage = "https://elfinfo.roboticoverlords.org/";
changelog = "https://github.com/xyproto/elfinfo/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ dtzWill ]; maintainers = with maintainers; [ dtzWill ];
}; };