mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Merge pull request #208837 from aaronjheng/go-bindata
go-bindata: Use buildGoModule
This commit is contained in:
commit
dd79045dde
1 changed files with 15 additions and 5 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue