go-bindata: Use buildGoModule
This commit is contained in:
parent
54f1ef62b9
commit
4434e57cf7
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";
|
pname = "go-bindata";
|
||||||
version = "3.24.0";
|
version = "3.24.0";
|
||||||
|
|
||||||
goPackagePath = "github.com/kevinburke/go-bindata";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kevinburke";
|
owner = "kevinburke";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
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" ];
|
subPackages = [ "go-bindata" ];
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/kevinburke/go-bindata";
|
homepage = "https://github.com/kevinburke/go-bindata";
|
||||||
changelog = "https://github.com/kevinburke/go-bindata/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/kevinburke/go-bindata/blob/v${version}/CHANGELOG.md";
|
||||||
|
|
Loading…
Reference in a new issue