tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Cross fixes (#374611)
authored by
Artturin
and committed by
GitHub
1 year ago
442de813
06f4b2f9
+22
-3
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
ab
abuild
package.nix
servers
monitoring
zabbix
proxy.nix
+2
-1
pkgs/by-name/ab/abuild/package.nix
···
53
53
54
54
patchPhase = ''
55
55
substituteInPlace ./Makefile \
56
56
-
--replace 'chmod 4555' '#chmod 4555'
56
56
+
--replace 'chmod 4555' '#chmod 4555' \
57
57
+
--replace 'pkg-config' "$PKG_CONFIG"
57
58
'';
58
59
59
60
makeFlags = [
+20
-2
pkgs/servers/monitoring/zabbix/proxy.nix
···
8
8
openssl,
9
9
pcre,
10
10
zlib,
11
11
+
buildPackages,
11
12
odbcSupport ? true,
12
13
unixODBC,
13
14
snmpSupport ? stdenv.buildPlatform == stdenv.hostPlatform,
···
29
30
30
31
let
31
32
inherit (lib) optional optionalString;
33
33
+
34
34
+
fake_pg_config = buildPackages.writeShellScript "pg_config" ''
35
35
+
if [[ "$1" == "--version" ]]; then
36
36
+
$PKG_CONFIG libpq --modversion
37
37
+
else
38
38
+
$PKG_CONFIG libpq --variable="''${1//--/}"
39
39
+
fi
40
40
+
'';
41
41
+
42
42
+
fake_mysql_config = buildPackages.writeShellScript "mysql_config" ''
43
43
+
if [[ "$1" == "--version" ]]; then
44
44
+
$PKG_CONFIG mysqlclient --modversion
45
45
+
else
46
46
+
$PKG_CONFIG mysqlclient $@
47
47
+
fi
48
48
+
'';
49
49
+
32
50
in
33
51
import ./versions.nix (
34
52
{ version, hash, ... }:
···
71
89
++ optional snmpSupport "--with-net-snmp"
72
90
++ optional sqliteSupport "--with-sqlite3=${sqlite.dev}"
73
91
++ optional sshSupport "--with-ssh2=${libssh2.dev}"
74
74
-
++ optional mysqlSupport "--with-mysql"
75
75
-
++ optional postgresqlSupport "--with-postgresql";
92
92
+
++ optional mysqlSupport "--with-mysql=${fake_mysql_config}"
93
93
+
++ optional postgresqlSupport "--with-postgresql=${fake_pg_config}";
76
94
77
95
prePatch = ''
78
96
find database -name data.sql -exec sed -i 's|/usr/bin/||g' {} +