summary refs log tree commit diff
path: root/pkgs/development/tools/unconvert/default.nix
blob: ac49ad1f969696e5f0807fc25f9d5d5612732e40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "unconvert";
  version = "unstable-2022-09-18";

  src = fetchFromGitHub {
    owner = "mdempsky";
    repo = "unconvert";
    rev = "3f84926d692329767c21c2aef3dfb7889c956832";
    sha256 = "sha256-vcRHriFCT5b8SKjtRSg+kZDcCAKySC1cKVq+FMZb+9M=";
  };

  vendorHash = "sha256-p77mLvGtohmC8J+bqqkM5kqc1pMPcFx7GhXOZ4q4jeM=";

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Remove unnecessary type conversions from Go source";
    homepage = "https://github.com/mdempsky/unconvert";
    license = licenses.bsd3;
    maintainers = with maintainers; [ kalbasit ];
  };
}