d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
37 lines
837 B
Nix
37 lines
837 B
Nix
{ lib, fetchFromGitHub }:
|
|
let
|
|
version = "1.0.1";
|
|
srcHash = "sha256-uwKLD3fW/em6UMkkyrWxAo7T//Hkzj6WjIp5qJVtBuc=";
|
|
vendorHash = "sha256-NYWJorVeRxbQTiirHK8gqpDddn2RsKsNWwDNdcONVQA=";
|
|
yarnHash = "sha256-QNeQwWU36A05zaARWmqEOhfyZRW68OgF4wTonQLYQfs=";
|
|
in
|
|
{
|
|
inherit version yarnHash vendorHash;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "woodpecker-ci";
|
|
repo = "woodpecker";
|
|
rev = "v${version}";
|
|
hash = srcHash;
|
|
};
|
|
|
|
postInstall = ''
|
|
cd $out/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 adamcstephens ];
|
|
};
|
|
}
|