nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6 woodpecker-plugin-git, 7}: 8 9buildGoModule rec { 10 pname = "woodpecker-plugin-git"; 11 version = "2.8.1"; 12 13 src = fetchFromGitHub { 14 owner = "woodpecker-ci"; 15 repo = "plugin-git"; 16 tag = version; 17 hash = "sha256-MhtqRWmZCjtb2QOwlbnlZUPHDNunjgWlhHCtM9pvYMM="; 18 }; 19 20 vendorHash = "sha256-hOktS+CQQ6TaHt96DaAcZXhqJGGleD/RdjdUfgv7oxw="; 21 22 env.CGO_ENABLED = "0"; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 "-X main.version=${version}" 28 ]; 29 30 # Checks fail because they require network access. 31 doCheck = false; 32 33 passthru.tests.version = testers.testVersion { package = woodpecker-plugin-git; }; 34 35 meta = { 36 description = "Woodpecker plugin for cloning Git repositories"; 37 homepage = "https://woodpecker-ci.org/"; 38 changelog = "https://github.com/woodpecker-ci/plugin-git/releases/tag/${version}"; 39 license = lib.licenses.asl20; 40 mainProgram = "plugin-git"; 41 maintainers = with lib.maintainers; [ 42 ambroisie 43 marcusramberg 44 ]; 45 }; 46}