60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
37 lines
889 B
Nix
37 lines
889 B
Nix
{ lib, fetchzip }:
|
|
let
|
|
version = "2.3.0";
|
|
srcHash = "sha256-r5TV5WJW2klSlrOG6EjfUgLyHhMI+BMUTY/2JIUgd0Q=";
|
|
# The tarball contains vendored dependencies
|
|
vendorHash = null;
|
|
in
|
|
{
|
|
inherit version vendorHash;
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/woodpecker-ci/woodpecker/releases/download/v${version}/woodpecker-src.tar.gz";
|
|
hash = srcHash;
|
|
stripRoot = false;
|
|
};
|
|
|
|
postInstall = ''
|
|
cd $out/bin
|
|
for f in *; do
|
|
mv -- "$f" "woodpecker-$f"
|
|
done
|
|
cd -
|
|
'';
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X go.woodpecker-ci.org/woodpecker/v2/version.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://woodpecker-ci.org/";
|
|
changelog = "https://github.com/woodpecker-ci/woodpecker/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ambroisie techknowlogick adamcstephens ];
|
|
};
|
|
}
|