feat(\db-tool\): introduce unified db-tool package with postgres harness and tests (T0-T8)
This commit is contained in:
29
package/parse-uri/default.nix
Normal file
29
package/parse-uri/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user