Skip to content

Commit

Permalink
Merge pull request #112164 from 06kellyjac/go-bindata
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 7, 2021
2 parents cbcca78 + a666390 commit 19ec821
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 26 deletions.
19 changes: 10 additions & 9 deletions pkgs/development/tools/go-bindata/default.nix
@@ -1,22 +1,23 @@
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage {
buildGoPackage rec {
pname = "go-bindata";
version = "unstable-2015-10-23";
version = "3.22.0";

goPackagePath = "github.com/jteeuwen/go-bindata";
goPackagePath = "github.com/kevinburke/go-bindata";

src = fetchFromGitHub {
owner = "jteeuwen";
repo = "go-bindata";
rev = "a0ff2567cfb70903282db057e799fd826784d41d";
sha256 = "0d6zxv0hgh938rf59p1k5lj0ymrb8kcps2vfrb9kaarxsvg7y69v";
owner = "kevinburke";
repo = pname;
rev = "v${version}";
sha256 = "10dq77dml5jvvq2jkdq81a9yjg7rncq8iw8r84cc3dz6l9hxzj0x";
};

excludedPackages = "testdata";
subPackages = [ "go-bindata" ];

meta = with lib; {
homepage = "https://github.com/jteeuwen/go-bindata";
homepage = "https://github.com/kevinburke/go-bindata";
changelog = "https://github.com/kevinburke/go-bindata/blob/v${version}/CHANGELOG.md";
description = "A small utility which generates Go code from any file, useful for embedding binary data in a Go program";
maintainers = with maintainers; [ cstrahan ];
license = licenses.cc0;
Expand Down
18 changes: 1 addition & 17 deletions pkgs/servers/nosql/influxdb2/default.nix
Expand Up @@ -73,28 +73,12 @@ let
--replace /out $out
'';
};

# Can't use the nixpkgs version of go-bindata, it's an ancient
# ancestor of this more modern one.
bindata = buildGoPackage {
pname = "go-bindata";
version = "v3.22.0";
src = fetchFromGitHub {
owner = "kevinburke";
repo = "go-bindata";
rev = "v3.22.0";
sha256 = "10dq77dml5jvvq2jkdq81a9yjg7rncq8iw8r84cc3dz6l9hxzj0x";
};

goPackagePath = "github.com/kevinburke/go-bindata";
subPackages = [ "go-bindata" ];
};
in buildGoModule {
pname = "influxdb";
version = version;
src = src;

nativeBuildInputs = [ bindata pkg-config ];
nativeBuildInputs = [ go-bindata pkg-config ];

vendorSha256 = "0lviz7l5zbghyfkp0lvlv8ykpak5hhkfal8d7xwvpsm8q3sghc8a";
subPackages = [ "cmd/influxd" "cmd/influx" ];
Expand Down

0 comments on commit 19ec821

Please sign in to comment.