410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
36 lines
754 B
Nix
36 lines
754 B
Nix
{ lib, fetchFromGitHub }:
|
|
let
|
|
version = "0.15.7";
|
|
srcSha256 = "sha256-Y6ew9CychStC26A7uyjChvkR+oDis3GZq8kYLHS7AXQ=";
|
|
yarnSha256 = "sha256-PY0BIBbjyi2DG+n5x/IPc0AwrFSwII4huMDU+FeZ/Sc=";
|
|
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;
|
|
maintainers = with maintainers; [ ambroisie techknowlogick ];
|
|
};
|
|
}
|