Merge pull request #208837 from aaronjheng/go-bindata

go-bindata: Use buildGoModule
This commit is contained in:
Sandro 2023-01-13 17:07:11 +01:00 committed by GitHub
commit dd79045dde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,30 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoPackage rec {
buildGoModule rec {
pname = "go-bindata";
version = "3.24.0";
goPackagePath = "github.com/kevinburke/go-bindata";
src = fetchFromGitHub {
owner = "kevinburke";
repo = pname;
rev = "v${version}";
sha256 = "sha256-dEfD5oV2nXLVg+a7PlB6LqhEBosG7eTptqKKDWcQAss=";
hash = "sha256-dEfD5oV2nXLVg+a7PlB6LqhEBosG7eTptqKKDWcQAss=";
};
vendorHash = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
patches = [
# Add go modules support
(fetchpatch {
url = "https://github.com/kevinburke/go-bindata/commit/b5c6f880d411b9c24a8ae1c8b608ab80cb9aacb4.patch";
hash = "sha256-dzzp5p+jdg09oo6jeSlms+MMMDWUXpsescj132MT6D8=";
})
];
subPackages = [ "go-bindata" ];
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://github.com/kevinburke/go-bindata";
changelog = "https://github.com/kevinburke/go-bindata/blob/v${version}/CHANGELOG.md";