2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "unconvert";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0-unstable-2023-09-07";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdempsky";
|
|
|
|
repo = "unconvert";
|
2024-06-20 14:57:18 +00:00
|
|
|
rev = "415706980c061b6f71ea923bd206aec88785638f";
|
|
|
|
hash = "sha256-MchA8uvy+MyQ/VaglBDTC7j/lNIKAtGeeECLoFfH6pI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-vZDk+ZNCMP5RRNrgeIowdOKPot7rqM84JhlbfvcQbB4=";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Remove unnecessary type conversions from Go source";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "unconvert";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mdempsky/unconvert";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
|
|
|
}
|