Merge pull request #142597 from azahi/werf
This commit is contained in:
commit
df2c21de51
|
@ -1170,6 +1170,17 @@
|
||||||
githubId = 56650223;
|
githubId = 56650223;
|
||||||
name = "Artturi N";
|
name = "Artturi N";
|
||||||
};
|
};
|
||||||
|
azahi = {
|
||||||
|
email = "azahi@teknik.io";
|
||||||
|
matrix = "@azahi:matrix.org";
|
||||||
|
github = "azahi";
|
||||||
|
githubId = 22211000;
|
||||||
|
name = "Azat Bahawi";
|
||||||
|
keys = [{
|
||||||
|
longkeyid = "rsa2048/0xB40FCB6608BBE3B6";
|
||||||
|
fingerprint = "E9F3 483F 31C7 29B4 4CA2 7C38 B40F CB66 08BB E3B6";
|
||||||
|
}];
|
||||||
|
};
|
||||||
ayazhafiz = {
|
ayazhafiz = {
|
||||||
email = "ayaz.hafiz.1@gmail.com";
|
email = "ayaz.hafiz.1@gmail.com";
|
||||||
github = "ayazhafiz";
|
github = "ayazhafiz";
|
||||||
|
|
53
pkgs/applications/networking/cluster/werf/default.nix
Normal file
53
pkgs/applications/networking/cluster/werf/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, gpgme
|
||||||
|
, glibc
|
||||||
|
, lvm2
|
||||||
|
, btrfs-progs
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "werf";
|
||||||
|
version = "1.2.55";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "werf";
|
||||||
|
repo = "werf";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-yLrCE0C8+LIXnBm4xG4q0vXtjTyau6mjkZ+/o/lbGhI=";
|
||||||
|
};
|
||||||
|
vendorSha256 = "sha256-xALB4QCIVpN0s1rR/fvHZFlFDf2trtG8yJKJLBRH4pw=";
|
||||||
|
proxyVendor = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
buildInputs = [ gpgme ]
|
||||||
|
++ lib.optionals stdenv.isLinux [ glibc.static lvm2 btrfs-progs ];
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
"-extldflags=-static"
|
||||||
|
];
|
||||||
|
tags = [ "dfrunmount" "dfssh" "containers_image_openpgp" ]
|
||||||
|
++ lib.optionals stdenv.isLinux [
|
||||||
|
"exclude_graphdriver_devicemapper"
|
||||||
|
"netgo"
|
||||||
|
"no_devmapper"
|
||||||
|
"osusergo"
|
||||||
|
"static_build"
|
||||||
|
];
|
||||||
|
|
||||||
|
subPackages = [ "cmd/werf" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/werf/werf";
|
||||||
|
description = "GitOps delivery tool";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ azahi ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -34104,6 +34104,8 @@ with pkgs;
|
||||||
|
|
||||||
webwormhole = callPackage ../tools/networking/webwormhole { };
|
webwormhole = callPackage ../tools/networking/webwormhole { };
|
||||||
|
|
||||||
|
werf = callPackage ../applications/networking/cluster/werf {};
|
||||||
|
|
||||||
wifi-password = callPackage ../os-specific/darwin/wifi-password {};
|
wifi-password = callPackage ../os-specific/darwin/wifi-password {};
|
||||||
|
|
||||||
qubes-core-vchan-xen = callPackage ../applications/qubes/qubes-core-vchan-xen {};
|
qubes-core-vchan-xen = callPackage ../applications/qubes/qubes-core-vchan-xen {};
|
||||||
|
|
Loading…
Reference in a new issue