moved woodpecker packages to branch/archive

This commit is contained in:
Johannes Schnürle 2022-09-08 15:14:20 +02:00
parent 93520f53b8
commit 45c31a621a
3 changed files with 0 additions and 92 deletions

View file

@ -1,26 +0,0 @@
with import <nixpkgs> {};
buildGoModule rec {
pname = "woodpecker-agent";
version = "0.15.1";
src = fetchFromGitHub {
owner = "woodpecker-ci";
repo = "woodpecker";
rev = "v${version}";
sha256 = "ilywzKczcER7kO19X6vhn28HieeT7ZTSsoKyu802bS0=";
};
vendorSha256 = null;
doCheck = false;
subPackages = [ "cmd/agent" ];
meta = with lib; {
description = "Woodpecker is a community fork of the Drone CI system.";
homepage = "https://woodpecker-ci.org/";
license = licenses.asl20;
platforms = platforms.linux ++ platforms.darwin;
};
}

View file

@ -1,26 +0,0 @@
with import <nixpkgs> {};
buildGoModule rec {
pname = "woodpecker-cli";
version = "0.15.1";
src = fetchFromGitHub {
owner = "woodpecker-ci";
repo = "woodpecker";
rev = "v${version}";
sha256 = "ilywzKczcER7kO19X6vhn28HieeT7ZTSsoKyu802bS0=";
};
vendorSha256 = null;
doCheck = false;
subPackages = [ "cmd/cli" ];
meta = with lib; {
description = "Woodpecker is a community fork of the Drone CI system.";
homepage = "https://woodpecker-ci.org/";
license = licenses.asl20;
platforms = platforms.linux ++ platforms.darwin;
};
}

View file

@ -1,40 +0,0 @@
with import <nixpkgs> {};
let
version = "0.15.1";
src = fetchFromGitHub {
owner = "woodpecker-ci";
repo = "woodpecker";
rev = "v${version}";
sha256 = "ilywzKczcER7kO19X6vhn28HieeT7ZTSsoKyu802bS0=";
};
frontend = mkYarnPackage {
pname = "woodpecker-frontend";
inherit version;
src = "${src}/web";
packageJSON = "${src}/web/package.json";
yarnLock = "${src}/web/yarn.lock";
buildPhase = ''
yarn build
'';
distPhase = "true";
};
meta = with lib; {
description = "Woodpecker is a community fork of the Drone CI system.";
homepage = "https://woodpecker-ci.org";
license = licenses.asl20;
platforms = platforms.linux ++ platforms.darwin;
};
in buildGoModule rec {
pname = "woodpecker-server";
inherit version;
inherit src;
vendorSha256 = null;
subPackages = [ "cmd/server" ];
buildInputs = [glibc.static];
CGO_ENABLED = true;
cflags="-I ${glibc.dev}/include";
ldflags = ["-s" "-w" ''-extldflags "-static"'' "-X github.com/woodpecker-ci/woodpecker/version.Version=${version}" "-L ${glibc}/lib"];
postPatch = ''
cp -r ${frontend}/libexec/woodpecker-ci/deps/woodpecker-ci/dist web/dist
'';
}