37 lines
800 B
Nix
37 lines
800 B
Nix
{ lib, fetchFromGitea }:
|
|
let
|
|
version = "36bdad8b00d3b8329dd414f3ccd22675660ec1bb";
|
|
srcSha256 = "sha256-c3fb/UP5flFuBvgLfxMAwSfQ24JlyjAiobBXeJhCvJk=";
|
|
yarnSha256 = "sha256-DZHwITEG+d3Xtj2k4FaWTEFNjJtX7rD0OvG2uuv6xH0=";
|
|
in
|
|
{
|
|
inherit version yarnSha256;
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.pleshevski.ru";
|
|
owner = "infra";
|
|
repo = "woodpecker";
|
|
rev = 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=next"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://woodpecker-ci.org/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ambroisie techknowlogick ];
|
|
};
|
|
}
|