Unverified Commit 6e8d9512 authored by IndeedNotJames's avatar IndeedNotJames
Browse files
parent 0e19daa5
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" ];