lol
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "unconvert";
5 version = "unstable-2022-09-18";
6
7 src = fetchFromGitHub {
8 owner = "mdempsky";
9 repo = "unconvert";
10 rev = "3f84926d692329767c21c2aef3dfb7889c956832";
11 sha256 = "sha256-vcRHriFCT5b8SKjtRSg+kZDcCAKySC1cKVq+FMZb+9M=";
12 };
13
14 vendorSha256 = "sha256-p77mLvGtohmC8J+bqqkM5kqc1pMPcFx7GhXOZ4q4jeM=";
15
16 ldflags = [ "-s" "-w" ];
17
18 meta = with lib; {
19 description = "Remove unnecessary type conversions from Go source";
20 homepage = "https://github.com/mdempsky/unconvert";
21 license = licenses.bsd3;
22 maintainers = with maintainers; [ kalbasit ];
23 };
24}