Differences From
Artifact [b4c0388029]:
1 1 local util = dofile('common.lua')
2 2 local sthunk = function(...) local a = {...} return function() return util.exec(a) end end
3 +
3 4 return {
4 5 mbedtls = {
5 6 libs = {'mbedtls', 'mbedcrypto', 'mbedx509'};
6 7 osvars = {
7 8 linux_nixos = { -- lacks a *.pc on nixos systems
................................................................................
8 9 prefix = sthunk('nix', 'path-info', 'nixos.mbedtls');
9 10 }
10 11 };
11 12 vars = { builddir = '/library' };
12 13 };
13 - libhttp = { vars = { builddir = '/lib' }; };
14 + mongoose = { vars = { builddir = '' } };
15 + libpq = {
16 + osvars = {
17 + linux_nixos = {
18 + prefix = sthunk('nix', 'path-info', 'nixos.postgresql.lib');
19 + incdir = function()
20 + local a = {'nix', 'path-info', 'nixos.postgresql'}
21 + return (util.exec(a)) .. '/include';
22 + end;
23 + };
24 + };
25 + vars = {pcname = 'postgresql';}
26 + };
27 + libc = {
28 + libs = {'dl'}; -- libc.so does not need explicit mention
29 + osvars = {
30 + linux_nixos = {
31 + prefix = sthunk('nix', 'path-info', 'nixos.glibc');
32 + override = 'glibc';
33 + };
34 + linux = { override = 'glibc'; };
35 + }
36 + };
14 37 }