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";
|
2024-06-18 08:23:09 +00:00
|
|
|
version = "0-unstable-2023-09-07";
|
2018-11-03 03:43:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdempsky";
|
|
|
|
repo = "unconvert";
|
2024-06-18 08:23:09 +00:00
|
|
|
rev = "415706980c061b6f71ea923bd206aec88785638f";
|
|
|
|
hash = "sha256-MchA8uvy+MyQ/VaglBDTC7j/lNIKAtGeeECLoFfH6pI=";
|
2018-11-03 03:43:40 +00:00
|
|
|
};
|
|
|
|
|
2024-06-18 08:23:09 +00:00
|
|
|
vendorHash = "sha256-vZDk+ZNCMP5RRNrgeIowdOKPot7rqM84JhlbfvcQbB4=";
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "unconvert";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|