2022-10-21 18:38:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, leaps }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "leaps";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Jeffail";
|
|
|
|
repo = "leaps";
|
|
|
|
rev = "v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-9AYE8+K6B6/odwNR+UhTTqmJ1RD6HhKvtC3WibWUZic=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
proxyVendor = true; # darwin/linux hash mismatch
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-0dwUOoV2bxPB+B6CKxJPImPIDlBMPcm0AwEMrVUkALc=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion { package = leaps; };
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A pair programming tool and library written in Golang";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "leaps";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jeffail/leaps/";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.mit;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ qknight ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|