2022-06-26 10:26:21 +00:00
|
|
|
{ lib, fetchFromGitHub }:
|
|
|
|
let
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.15.8";
|
|
|
|
srcSha256 = "sha256-7CTRx7I47VEKfPvkWhmpyHV3hkeLyHymFMrkyYQ1wl8=";
|
2023-01-11 07:51:40 +00:00
|
|
|
yarnSha256 = "sha256-PY0BIBbjyi2DG+n5x/IPc0AwrFSwII4huMDU+FeZ/Sc=";
|
2022-06-26 10:26:21 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit version yarnSha256;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "woodpecker-ci";
|
|
|
|
repo = "woodpecker";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = srcSha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
cd $GOPATH/bin
|
|
|
|
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/";
|
|
|
|
license = licenses.asl20;
|
2022-10-30 15:09:59 +00:00
|
|
|
maintainers = with maintainers; [ ambroisie techknowlogick ];
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
}
|