38 lines
800 B
Nix
38 lines
800 B
Nix
|
{ lib, fetchFromGitea }:
|
||
|
let
|
||
|
version = "13f878c10ac77d16ddae994b9253fa8c23c4d5be";
|
||
|
srcSha256 = "sha256-ifyQK3eCThNPu3Qnfy6WUYba5qvop+6VJmwpWcpWJVE=";
|
||
|
yarnSha256 = "sha256-XsyMw2xqTjng4DoeiUb2+pJ9rGtHw2yZgy7pzLSDkas=";
|
||
|
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 ];
|
||
|
};
|
||
|
}
|