about summary refs log tree commit diff
path: root/pkgs/development/tools/unconvert/default.nix
blob: 478a111555a61ad3f52a39632a841afb6ba83aea (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
25
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "unconvert";
  version = "0-unstable-2023-09-07";

  src = fetchFromGitHub {
    owner = "mdempsky";
    repo = "unconvert";
    rev = "415706980c061b6f71ea923bd206aec88785638f";
    hash = "sha256-MchA8uvy+MyQ/VaglBDTC7j/lNIKAtGeeECLoFfH6pI=";
  };

  vendorHash = "sha256-vZDk+ZNCMP5RRNrgeIowdOKPot7rqM84JhlbfvcQbB4=";

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

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