nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 testers,
6 plow,
7}:
8
9buildGoModule rec {
10 pname = "plow";
11 version = "1.3.2";
12
13 src = fetchFromGitHub {
14 owner = "six-ddc";
15 repo = "plow";
16 tag = "v${version}";
17 hash = "sha256-q9k5GzhYPOP8p8VKrqpoHc3B9Qak+4DtZAZZuFlkED0=";
18 };
19
20 vendorHash = "sha256-KfnDJI6M6tzfoI7krKId5FXUw27eV6cEoz3UaNrlXWk=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 "-X main.version=${version}"
26 ];
27
28 passthru.tests.version = testers.testVersion {
29 package = plow;
30 };
31
32 meta = {
33 description = "High-performance HTTP benchmarking tool that includes a real-time web UI and terminal display";
34 homepage = "https://github.com/six-ddc/plow";
35 changelog = "https://github.com/six-ddc/plow/releases/tag/v${version}";
36 license = lib.licenses.asl20;
37 maintainers = with lib.maintainers; [ ecklf ];
38 mainProgram = "plow";
39 };
40}