Update woodpecker-plugin-git expression
This commit is contained in:
parent
8bf1cc39a8
commit
edd1c80996
|
@ -1,35 +1,26 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.buildGoModule rec {
|
||||
pname = "woodpecker-plugin-git";
|
||||
version = "1.2.0";
|
||||
|
||||
CGO_ENABLED = "0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "woodpecker-ci";
|
||||
repo = "plugin-git";
|
||||
rev = "v${version}";
|
||||
sha256 = "BYZrE0LZNTEggT2F83hUWZD0P5wQAOJjDE26idA5yno=";
|
||||
};
|
||||
|
||||
|
||||
vendorSha256 = "oIGYARXDVcFBxoapMGZMvcCYIc7LHHQIEhugDxRZeU4=";
|
||||
|
||||
|
||||
# Checks fail because they require network access.
|
||||
doCheck = false;
|
||||
|
||||
preBuild = "
|
||||
export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
export CGO_ENABLED=0
|
||||
export GO111MODULE=on
|
||||
";
|
||||
|
||||
buildPhase = "
|
||||
go build -v -a -tags netgo -o release/linux/amd64/plugin-git
|
||||
";
|
||||
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Woodpecker plugin for cloning Git repositories.";
|
||||
homepage = "https://woodpecker-ci.org/";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [thehedgeh0g];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue