nixpkgs/pkgs/development/tools/leaps/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
772 B
Nix
Raw Normal View History

2022-09-29 11:12:51 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, leaps }:
2016-08-20 14:01:56 +00:00
2022-09-29 11:12:51 +00:00
buildGoModule rec {
pname = "leaps";
2022-09-29 11:12:51 +00:00
version = "0.9.1";
2016-08-20 14:01:56 +00:00
2016-11-06 09:33:21 +00:00
src = fetchFromGitHub {
2018-02-22 22:27:44 +00:00
owner = "Jeffail";
2016-11-06 09:33:21 +00:00
repo = "leaps";
rev = "v${version}";
2022-09-29 11:12:51 +00:00
sha256 = "sha256-9AYE8+K6B6/odwNR+UhTTqmJ1RD6HhKvtC3WibWUZic=";
2016-08-20 14:01:56 +00:00
};
2022-09-29 11:12:51 +00:00
proxyVendor = true; # darwin/linux hash mismatch
vendorHash = "sha256-0dwUOoV2bxPB+B6CKxJPImPIDlBMPcm0AwEMrVUkALc=";
2022-09-29 11:12:51 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
passthru.tests.version = testers.testVersion { package = leaps; };
2022-09-29 11:12:51 +00:00
meta = with lib; {
2016-08-20 14:01:56 +00:00
description = "A pair programming tool and library written in Golang";
homepage = "https://github.com/jeffail/leaps/";
2022-09-29 11:12:51 +00:00
license = licenses.mit;
maintainers = with lib.maintainers; [ qknight ];
2016-08-20 14:01:56 +00:00
};
}