2023-01-20 10:41:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "go-bindata";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "3.24.0";
|
2020-06-02 18:00:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-13 14:23:35 +00:00
|
|
|
owner = "kevinburke";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-dEfD5oV2nXLVg+a7PlB6LqhEBosG7eTptqKKDWcQAss=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
vendorHash = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Add go modules support
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/kevinburke/go-bindata/commit/b5c6f880d411b9c24a8ae1c8b608ab80cb9aacb4.patch";
|
|
|
|
hash = "sha256-dzzp5p+jdg09oo6jeSlms+MMMDWUXpsescj132MT6D8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
subPackages = [ "go-bindata" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-13 14:23:35 +00:00
|
|
|
homepage = "https://github.com/kevinburke/go-bindata";
|
|
|
|
changelog = "https://github.com/kevinburke/go-bindata/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A small utility which generates Go code from any file, useful for embedding binary data in a Go program";
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2020-06-02 18:00:15 +00:00
|
|
|
license = licenses.cc0;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|