fix?(package): postgreact
This commit is contained in:
@@ -1,39 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
curl,
|
||||
postgresql,
|
||||
...
|
||||
buildPostgresqlExtension,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
buildPostgresqlExtension rec {
|
||||
pname = "postgreact";
|
||||
version = "0.1";
|
||||
version = "1.0";
|
||||
|
||||
buildInputs = [
|
||||
];
|
||||
|
||||
EXTENSION = pname;
|
||||
EXTENSION_VERSION = version;
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [
|
||||
postgresql
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p target
|
||||
sh ./make.sh build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/postgresql $out/share/postgresql/extension
|
||||
|
||||
# Install compiled library
|
||||
install -m 755 -D target/postgreact.so $out/lib/postgresql/postgreact.so
|
||||
|
||||
# Install control and SQL files
|
||||
install -m 644 -D postgreact.control $out/share/postgresql/extension/postgreact.control
|
||||
install -m 644 -D postgreact--0.1.sql $out/share/postgresql/extension/postgreact--0.1.sql
|
||||
'';
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
meta = with lib; {
|
||||
description = "PostgreSQL extension for reactive functions";
|
||||
homepage = "https://github.com/yukkop/util.nix";
|
||||
license = licenses.mit;
|
||||
description = "PostgreSQL extension for simple templating.";
|
||||
homepage = "https://github.com/hectic-lab/util.nix";
|
||||
license = licenses.asl20;
|
||||
platforms = postgresql.meta.platforms;
|
||||
maintainers = with maintainers; [];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user