Thomas Gerbet 2024-02-24 14:39:04 +01:00
parent 5154a46001
commit e2f81c0f30
6 changed files with 14 additions and 14 deletions

View File

@ -1,13 +1,13 @@
{ lib, stdenv, fetchurl, pkg-config, libiconv, openssl, pcre }:
import ./versions.nix ({ version, sha256, ... }:
import ./versions.nix ({ version, hash, ... }:
stdenv.mkDerivation {
pname = "zabbix-agent";
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
inherit hash;
};
nativeBuildInputs = [ pkg-config ];

View File

@ -1,13 +1,13 @@
{ lib, buildGoModule, fetchurl, autoreconfHook, pkg-config, libiconv, openssl, pcre, zlib }:
import ./versions.nix ({ version, sha256, vendorHash ? throw "unsupported version ${version} for zabbix-agent2", ... }:
import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version ${version} for zabbix-agent2", ... }:
buildGoModule {
pname = "zabbix-agent2";
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
inherit hash;
};
modRoot = "src/go";

View File

@ -15,14 +15,14 @@ assert sqliteSupport -> !mysqlSupport && !postgresqlSupport;
let
inherit (lib) optional optionalString;
in
import ./versions.nix ({ version, sha256, ... }:
import ./versions.nix ({ version, hash, ... }:
stdenv.mkDerivation {
pname = "zabbix-proxy";
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
inherit hash;
};
nativeBuildInputs = [ pkg-config ];

View File

@ -16,14 +16,14 @@ assert postgresqlSupport -> !mysqlSupport;
let
inherit (lib) optional optionalString;
in
import ./versions.nix ({ version, sha256, ... }:
import ./versions.nix ({ version, hash, ... }:
stdenv.mkDerivation {
pname = "zabbix-server";
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
inherit hash;
};
nativeBuildInputs = [ autoreconfHook pkg-config ];

View File

@ -1,13 +1,13 @@
generic: {
v60 = generic {
version = "6.0.21";
sha256 = "sha256-hdKPI5UEQvF/URH2eLWW32az3LMEse3UXIELOsfvwzk=";
hash = "sha256-hdKPI5UEQvF/URH2eLWW32az3LMEse3UXIELOsfvwzk=";
vendorHash = null;
};
v50 = generic {
version = "5.0.37";
sha256 = "sha256-+C5fI+eMJKsynVnVJIYj27x1iFQwaG9Fnho0BXgENQI=";
vendorHash = "sha256-oSZBzIUL1yHXk7PnkSAlhI0i89aGMFrFHmbMN9rDAJ0=";
version = "5.0.41";
hash = "sha256-pPvw0lPoK1IpsXc5c8Qu9zFhx2oHJz2bwiX80vrYa58=";
vendorHash = "sha256-qLDoNnEFiSrWXbLtYlmQaqY8Rv6JaG8WbMYBlry5Evc=";
};
}

View File

@ -1,13 +1,13 @@
{ lib, stdenv, fetchurl, writeText }:
import ./versions.nix ({ version, sha256, ... }:
import ./versions.nix ({ version, hash, ... }:
stdenv.mkDerivation rec {
pname = "zabbix-web";
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
inherit hash;
};
phpConfig = writeText "zabbix.conf.php" ''