2022-05-27 12:08:01 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-03 03:43:40 +00:00
|
|
|
|
2022-05-27 12:08:01 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "unconvert";
|
2022-09-30 15:03:57 +00:00
|
|
|
version = "unstable-2022-09-18";
|
2018-11-03 03:43:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdempsky";
|
|
|
|
repo = "unconvert";
|
2022-09-30 15:03:57 +00:00
|
|
|
rev = "3f84926d692329767c21c2aef3dfb7889c956832";
|
|
|
|
sha256 = "sha256-vcRHriFCT5b8SKjtRSg+kZDcCAKySC1cKVq+FMZb+9M=";
|
2018-11-03 03:43:40 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 15:03:57 +00:00
|
|
|
vendorSha256 = "sha256-p77mLvGtohmC8J+bqqkM5kqc1pMPcFx7GhXOZ4q4jeM=";
|
2022-05-27 12:08:01 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2018-11-03 03:43:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Remove unnecessary type conversions from Go source";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mdempsky/unconvert";
|
2018-11-03 03:43:40 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
|
|
|
}
|