werf: 1.2.107 -> 1.2.114

This commit is contained in:
Azat Bahawi 2022-06-11 17:58:42 +03:00
parent b29ac1db91
commit 2a8762a9e5
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

View file

@ -3,39 +3,44 @@
, buildGoModule
, fetchFromGitHub
, installShellFiles
, pkg-config
, gpgme
, glibc
, lvm2
, btrfs-progs
, glibc
}:
buildGoModule rec {
pname = "werf";
version = "1.2.107";
version = "1.2.114";
src = fetchFromGitHub {
owner = "werf";
repo = "werf";
rev = "v${version}";
sha256 = "sha256-a66BN8thTEKrXCOXpYIlbQnlA0VYEomQrc/m87qn6j4=";
sha256 = "sha256-+QCKVXuROd7QB6P5tSSINWtdw5OvVnmE1+ttoBnCO1g=";
};
vendorSha256 = "sha256-NwrkjeDicp4fmeviTCSs9lSg33Cgpv8tBdm84RJz/gQ=";
vendorSha256 = "sha256-VuburDiYqePFvS7/aTM+krkK2UhTHhfbvGOLY3I3DN8=";
proxyVendor = true;
nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = [ gpgme ]
++ lib.optionals stdenv.isLinux [ glibc.static lvm2 btrfs-progs ];
subPackages = [ "cmd/werf" ];
# Flags are derived from
# https://github.com/werf/werf/blob/main/scripts/build_release_v3.sh
ldflags = [ "-s" "-w" "-X github.com/werf/werf/pkg/werf.Version=v${version}" ]
++ lib.optionals stdenv.isLinux [
"-linkmode external"
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs glibc.static ];
ldflags = [
"-s"
"-w"
"-X github.com/werf/werf/pkg/werf.Version=${src.rev}"
] ++ lib.optionals stdenv.isLinux [
"-extldflags=-static"
"-linkmode external"
];
tags = [ "dfrunmount" "dfssh" "containers_image_openpgp" ]
++ lib.optionals stdenv.isLinux [
tags = [
"containers_image_openpgp"
"dfrunmount"
"dfssh"
] ++ lib.optionals stdenv.isLinux [
"exclude_graphdriver_devicemapper"
"netgo"
"no_devmapper"
@ -43,7 +48,8 @@ buildGoModule rec {
"static_build"
];
subPackages = [ "cmd/werf" ];
# There are no tests for cmd/werf.
doCheck = false;
postInstall = ''
installShellCompletion --cmd werf \
@ -52,8 +58,13 @@ buildGoModule rec {
'';
meta = with lib; {
homepage = "https://github.com/werf/werf";
description = "GitOps delivery tool";
longDescription = ''
The CLI tool gluing Git, Docker, Helm & Kubernetes with any CI system to
implement CI/CD and Giterminism.
'';
homepage = "https://werf.io";
changelog = "https://github.com/werf/werf/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ azahi ];
};