nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildGoModule,
3 lib,
4 fetchFromGitHub,
5}:
6
7buildGoModule {
8 pname = "iferr";
9 version = "0-unstable-2024-01-22";
10
11 src = fetchFromGitHub {
12 owner = "koron";
13 repo = "iferr";
14 rev = "9c3e2fbe4bd19a7f0338e42bb483562ed4cf4d50";
15 hash = "sha256-qGuSsdQorb407rDl2o7w7kPCLng3W7YQsqo5JpoZFW8=";
16 };
17
18 vendorHash = null;
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = with lib; {
26 description = ''Generate "if err != nil {" block'';
27 homepage = "https://github.com/koron/iferr";
28 license = licenses.mit;
29 maintainers = with maintainers; [ kalbasit ];
30 mainProgram = "iferr";
31 };
32}