2024-04-21 15:54:59 +00:00
|
|
|
{ buildGoModule
|
2020-04-24 23:36:52 +00:00
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildGoModule {
|
|
|
|
pname = "iferr";
|
|
|
|
version = "0-unstable-2024-01-22";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koron";
|
|
|
|
repo = "iferr";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "9c3e2fbe4bd19a7f0338e42bb483562ed4cf4d50";
|
|
|
|
hash = "sha256-qGuSsdQorb407rDl2o7w7kPCLng3W7YQsqo5JpoZFW8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = ''Generate "if err != nil {" block'';
|
|
|
|
homepage = "https://github.com/koron/iferr";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "iferr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|