changed zabbix agent2 to support current nix build
This commit is contained in:
parent
bf60b7d466
commit
c15722eec0
2 changed files with 15 additions and 14 deletions
|
|
@ -1,20 +1,18 @@
|
||||||
{ lib, buildGoModule, fetchurl, autoreconfHook, pkg-config, libiconv, openssl, pcre, zlib }:
|
{ lib, buildGoModule, fetchurl, autoreconfHook, pkg-config, libiconv, openssl, pcre, zlib }:
|
||||||
|
|
||||||
import ./versions.nix ({ version, sha256 }:
|
import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version ${version} for zabbix-agent2", ... }:
|
||||||
buildGoModule {
|
buildGoModule {
|
||||||
pname = "zabbix-agent2";
|
pname = "zabbix-agent2";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
|
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
|
||||||
inherit sha256;
|
inherit hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
modRoot = "src/go";
|
modRoot = "src/go";
|
||||||
|
|
||||||
#vendorSha256 = "1417qi061xc4m55z0vz420fr7qpi24kw5yj9wq7iic92smakgkjn";
|
inherit vendorHash;
|
||||||
#vendorSha256 = "sha256-W95Z9pIhd5MQJAGn94kiVbQVFkmvjGPWfMx4JyJ2/EU=";
|
|
||||||
vendorSha256 = null;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
buildInputs = [ libiconv openssl pcre zlib ];
|
buildInputs = [ libiconv openssl pcre zlib ];
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,19 @@
|
||||||
generic: {
|
generic: {
|
||||||
latest = generic {
|
latest = generic {
|
||||||
version = "6.4.10";
|
version = "6.4.12";
|
||||||
sha256 = "sha256-2rrRr1LsXztlyj1QAeV4LNcx0QQ5SnGDvYHfrl1qvSU=";
|
hash = "sha256-tk88/GyjlR1JsCSgktCyBVXdFTqfkMJ1TK7WYAuqE6g=";
|
||||||
|
vendorHash = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
v60 = generic {
|
||||||
|
version = "6.0.26";
|
||||||
|
hash = "sha256-MIOKe5hqfDecB1oWZKzbFmJCsQLuAGtp21l2WxxVG+g=";
|
||||||
|
vendorHash = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
v50 = generic {
|
v50 = generic {
|
||||||
version = "5.0.19";
|
version = "5.0.41";
|
||||||
sha256 = "sha256-esa7DczdaWiG8Ru9py8HlOhvhkjV8IQjMwuiJ6F5c6E=";
|
hash = "sha256-pPvw0lPoK1IpsXc5c8Qu9zFhx2oHJz2bwiX80vrYa58=";
|
||||||
};
|
vendorHash = "sha256-qLDoNnEFiSrWXbLtYlmQaqY8Rv6JaG8WbMYBlry5Evc=";
|
||||||
|
|
||||||
v40 = generic {
|
|
||||||
version = "4.0.37";
|
|
||||||
sha256 = "sha256-Wuexl8I2zA63jyTRDe8bMSP++imwSOxc4LEdUnH8jps=";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue