1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 testers,
6 leaps,
7 nixosTests,
8}:
9
10buildGoModule rec {
11 pname = "leaps";
12 version = "0.9.1";
13
14 src = fetchFromGitHub {
15 owner = "Jeffail";
16 repo = "leaps";
17 rev = "v${version}";
18 sha256 = "sha256-9AYE8+K6B6/odwNR+UhTTqmJ1RD6HhKvtC3WibWUZic=";
19 };
20
21 proxyVendor = true; # darwin/linux hash mismatch
22 vendorHash = "sha256-0dwUOoV2bxPB+B6CKxJPImPIDlBMPcm0AwEMrVUkALc=";
23
24 ldflags = [
25 "-s"
26 "-w"
27 "-X main.version=${version}"
28 ];
29
30 passthru.tests = {
31 version = testers.testVersion { package = leaps; };
32 inherit (nixosTests) leaps;
33 };
34
35 meta = with lib; {
36 description = "Pair programming tool and library written in Golang";
37 mainProgram = "leaps";
38 homepage = "https://github.com/jeffail/leaps/";
39 license = licenses.mit;
40 maintainers = with lib.maintainers; [ qknight ];
41 };
42}