at 24.11-pre 41 lines 921 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6let 7 version = "1.11.0"; 8in 9buildGoModule { 10 pname = "gotestsum"; 11 inherit version; 12 13 src = fetchFromGitHub { 14 owner = "gotestyourself"; 15 repo = "gotestsum"; 16 rev = "v${version}"; 17 hash = "sha256-Sq0ejnX7AJoPf3deBge8PMOq1NlMbw+Ljn145C5MQ+s="; 18 }; 19 20 vendorHash = "sha256-zUqa6xlDV12ZV4N6+EZ7fLPsL8U+GB7boQ0qG9egvm0="; 21 22 doCheck = false; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 "-X gotest.tools/gotestsum/cmd.version=${version}" 28 ]; 29 30 subPackages = [ "." ]; 31 32 meta = { 33 homepage = "https://github.com/gotestyourself/gotestsum"; 34 changelog = "https://github.com/gotestyourself/gotestsum/releases/tag/v${version}"; 35 description = "A human friendly `go test` runner"; 36 mainProgram = "gotestsum"; 37 platforms = with lib.platforms; linux ++ darwin; 38 license = lib.licenses.asl20; 39 maintainers = with lib.maintainers; [ isabelroses ]; 40 }; 41}