Unverified Commit 4f360a29 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #225345 from IndeedNotJames/go-bindata

go-bindata: 3.24.0 -> 4.0.2
parents a7530dd9 6e8d9512
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "go-bindata";
  version = "3.24.0";
  version = "4.0.2";

  src = fetchFromGitHub {
    owner = "kevinburke";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-dEfD5oV2nXLVg+a7PlB6LqhEBosG7eTptqKKDWcQAss=";
    hash = "sha256-3/1RqJrv1fsPKsZpurp2dHsMg8FJBcFlI/pwwCf5H6E=";
  };

  vendorHash = null;

  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" ];