2022-06-26 10:26:21 +00:00
|
|
|
{ lib, fetchFromGitHub }:
|
|
|
|
let
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.5";
|
|
|
|
srcHash = "sha256-tkgkhYuLHfmT42P+UMZ7uNB2wBKo0YGiw0a5RoMAu6M=";
|
|
|
|
vendorHash = "sha256-QTTnTPOgP+FlbqXNCGJc9VuBzQcMujpvFB3+DykYTPY=";
|
2023-10-19 13:55:26 +00:00
|
|
|
yarnHash = "sha256-TrcTc5svLLSedRC8gCwIBW7/mtHo+uSNZGImtRiVJ0w=";
|
2022-06-26 10:26:21 +00:00
|
|
|
in
|
|
|
|
{
|
2023-08-04 22:07:22 +00:00
|
|
|
inherit version yarnHash vendorHash;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "woodpecker-ci";
|
|
|
|
repo = "woodpecker";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = srcHash;
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
cd $out/bin
|
2022-06-26 10:26:21 +00:00
|
|
|
for f in *; do
|
|
|
|
mv -- "$f" "woodpecker-$f"
|
|
|
|
done
|
|
|
|
cd -
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/woodpecker-ci/woodpecker/version.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://woodpecker-ci.org/";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/woodpecker-ci/woodpecker/blob/v${version}/CHANGELOG.md";
|
2022-06-26 10:26:21 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-10 07:59:29 +00:00
|
|
|
maintainers = with maintainers; [ ambroisie techknowlogick adamcstephens ];
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
}
|