feat(\db-tool\): introduce unified db-tool package with postgres harness and tests (T0-T8)

This commit is contained in:
2026-04-30 09:06:44 +00:00
parent 395bddee94
commit b5dcbf08a1
27 changed files with 2417 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
{ stdenv, gcc, libpq, lib, bash }:
stdenv.mkDerivation {
pname = "parse-uri";
version = "1.0";
src = ./.;
doCheck = false;
nativeBuildInputs = [ gcc ];
buildInputs = [ libpq ];
INCLUDES = "-I${libpq.dev}/include";
LDFLAGS = "-L${libpq.out}/lib -lpq";
buildPhase = ''
${bash}/bin/sh ./make.sh build
'';
installPhase = ''
mkdir -p $out/bin
cp target/parse-uri $out/bin/
'';
meta = {
description = "parse-uri";
license = lib.licenses.mit;
};
}