4 srcHash = "sha256-BJHvZhi/jjVH/NZKqGwL2ZiYGxM72EtJ0KTO21IigAY=";
5 # The tarball contains vendored dependencies
9 inherit version vendorHash;
12 url = "https://github.com/woodpecker-ci/woodpecker/releases/download/v${version}/woodpecker-src.tar.gz";
20 if [ "$f" = cli ]; then
21 # Issue a warning to the user if they call the deprecated executable
22 cat >woodpecker << EOF
24 echo 'WARNING: calling \`woodpecker\` is deprecated, use \`woodpecker-cli\` instead.' >&2
25 $out/bin/woodpecker-cli "\$@"
28 patchShebangs woodpecker
30 mv -- "$f" "woodpecker-$f"
38 "-X go.woodpecker-ci.org/woodpecker/v3/version.Version=${version}"
42 homepage = "https://woodpecker-ci.org/";
43 changelog = "https://github.com/woodpecker-ci/woodpecker/blob/v${version}/CHANGELOG.md";
44 license = licenses.asl20;
45 maintainers = with maintainers; [