4 srcHash = "sha256-03y0xLXgdvw1NAtH2FDW91wp13ohimqjz3kl2mWc11E=";
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 mv -- "$f" "woodpecker"
22 # Issue a warning to the user if they call the deprecated executable
23 cat >woodpecker-cli << EOF
25 echo 'WARNING: calling `woodpecker-cli` is deprecated, use `woodpecker` instead.' >&2
26 $out/bin/woodpecker "\$@"
28 chmod +x woodpecker-cli
29 patchShebangs woodpecker-cli
31 mv -- "$f" "woodpecker-$f"
40 "-X go.woodpecker-ci.org/woodpecker/v2/version.Version=${version}"
44 homepage = "https://woodpecker-ci.org/";
45 changelog = "https://github.com/woodpecker-ci/woodpecker/blob/v${version}/CHANGELOG.md";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ ambroisie techknowlogick adamcstephens ];