Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
chore: format (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose authored Mar 4, 2024
1 parent b38fcc7 commit 33d25b8
Show file tree
Hide file tree
Showing 18 changed files with 252 additions and 228 deletions.
16 changes: 8 additions & 8 deletions ext/citus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ stdenv.mkDerivation rec {
pname = "citus";
version = "12.1.2";

buildInputs = [ curl lz4 zstd krb5 icu.dev postgresql];
buildInputs = [ curl lz4 zstd krb5 icu.dev postgresql ];

src = fetchFromGitHub {
owner = "citusdata";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-0uYNMLAYigtGlDRvOEkQeC5i58QfXcdSVjTQwWVFX+8=";
owner = "citusdata";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-0uYNMLAYigtGlDRvOEkQeC5i58QfXcdSVjTQwWVFX+8=";
};

installPhase = ''
Expand All @@ -29,9 +29,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Distributed PostgreSQL as an extension";
homepage = "https://github.com/citusdata/${pname}";
homepage = "https://github.com/citusdata/${pname}";
maintainers = with maintainers; [ olirice ];
platforms = postgresql.meta.platforms;
license = licenses.agpl3Plus;
platforms = postgresql.meta.platforms;
license = licenses.agpl3Plus;
};
}
14 changes: 7 additions & 7 deletions ext/hypopg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "HypoPG";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-AIBXy+LxyHUo+1hd8gQTwaBdFiTEzKaCVc4cx5tZgME=";
owner = "HypoPG";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-AIBXy+LxyHUo+1hd8gQTwaBdFiTEzKaCVc4cx5tZgME=";
};

installPhase = ''
Expand All @@ -23,9 +23,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Hypothetical Indexes for PostgreSQL";
homepage = "https://github.com/HypoPG/${pname}";
homepage = "https://github.com/HypoPG/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pg_graphql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ buildPgrxExtension rec {
inherit postgresql;

src = fetchFromGitHub {
owner = "supabase";
repo = pname;
rev = "v1.5.0";
hash = "sha256-28ANRZyF22qF2YAxNAAkPfGOM3+xiO6IHdXsTp0CTQE=";
owner = "supabase";
repo = pname;
rev = "v1.5.0";
hash = "sha256-28ANRZyF22qF2YAxNAAkPfGOM3+xiO6IHdXsTp0CTQE=";
};

cargoHash = "sha256-CUiGs0m9aUeqjpdPyOSjz91cP7TT6kjJqnw7ImGnQuo=";
Expand All @@ -21,9 +21,9 @@ buildPgrxExtension rec {

meta = with lib; {
description = "GraphQL support for PostreSQL";
homepage = "https://github.com/supabase/${pname}";
homepage = "https://github.com/supabase/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pg_hashids.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "iCyberon";
repo = pname;
rev = "cd0e1b31d52b394a0df64079406a14a4f7387cd6";
hash = "sha256-Nmb7XLqQflYZfqj0yrewfb1Hl5YgEB5wfjBunPwIuOU=";
owner = "iCyberon";
repo = pname;
rev = "cd0e1b31d52b394a0df64079406a14a4f7387cd6";
hash = "sha256-Nmb7XLqQflYZfqj0yrewfb1Hl5YgEB5wfjBunPwIuOU=";
};

installPhase = ''
Expand All @@ -23,9 +23,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Generate short unique IDs in PostgreSQL";
homepage = "https://github.com/iCyberon/pg_hashids";
homepage = "https://github.com/iCyberon/pg_hashids";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pg_jsonschema.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ buildPgrxExtension rec {
inherit postgresql;

src = fetchFromGitHub {
owner = "supabase";
repo = pname;
rev = "v0.3.0";
hash = "sha256-am6Ye+pOoAsOr9L4vJXw4iIOJ9x0VkUjqH6PdXMUZrk=";
owner = "supabase";
repo = pname;
rev = "v0.3.0";
hash = "sha256-am6Ye+pOoAsOr9L4vJXw4iIOJ9x0VkUjqH6PdXMUZrk=";
};

cargoHash = "sha256-tiiWzu/mTKL5ruvWn6IxrXVhVqS4LXzjfacdFT9rbOY=";
Expand All @@ -20,9 +20,9 @@ buildPgrxExtension rec {

meta = with lib; {
description = "JSON Schema Validation for PostgreSQL";
homepage = "https://github.com/supabase/${pname}";
homepage = "https://github.com/supabase/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pg_net.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ curl postgresql ];

src = fetchFromGitHub {
owner = "supabase";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9Ki3fyinHTYrfckxAY0fCTlzJd9l+n7QRUV7mIWrqmc=";
owner = "supabase";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9Ki3fyinHTYrfckxAY0fCTlzJd9l+n7QRUV7mIWrqmc=";
};

installPhase = ''
Expand All @@ -23,9 +23,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Async networking for Postgres";
homepage = "https://github.com/supabase/pg_net";
homepage = "https://github.com/supabase/pg_net";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pg_plan_filter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "pgexperts";
repo = pname;
rev = "5081a7b5cb890876e67d8e7486b6a64c38c9a492";
hash = "sha256-YNeIfmccT/DtOrwDmpYFCuV2/P6k3Zj23VWBDkOh6sw=";
owner = "pgexperts";
repo = pname;
rev = "5081a7b5cb890876e67d8e7486b6a64c38c9a492";
hash = "sha256-YNeIfmccT/DtOrwDmpYFCuV2/P6k3Zj23VWBDkOh6sw=";
};

installPhase = ''
Expand All @@ -22,9 +22,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Filter PostgreSQL statements by execution plans";
homepage = "https://github.com/pgexperts/${pname}";
homepage = "https://github.com/pgexperts/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
19 changes: 10 additions & 9 deletions ext/pg_stat_monitor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ let
# then "pg_stat_monitor--1.0.13.sql.in"
# else "pg_stat_monitor--1.0.14.sql.in";

in stdenv.mkDerivation rec {
in
stdenv.mkDerivation rec {
pname = "pg_stat_monitor";
version = "2.0.4";

buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "percona";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-57Ji/KltIHNf81OxT0+4JIDqydST5RKMqrybNBZochg=";
owner = "percona";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-57Ji/KltIHNf81OxT0+4JIDqydST5RKMqrybNBZochg=";
};

makeFlags = [ "USE_PGXS=1" ];
Expand All @@ -41,10 +42,10 @@ in stdenv.mkDerivation rec {

meta = with lib; {
description = "Query Performance Monitoring Tool for PostgreSQL";
homepage = "https://github.com/percona/${pname}";
homepage = "https://github.com/percona/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
broken = lib.versionOlder postgresql.version "15";
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
broken = lib.versionOlder postgresql.version "15";
};
}
14 changes: 7 additions & 7 deletions ext/pg_tle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ stdenv.mkDerivation rec {
buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "aws";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-W/7pLy/27VatCdzUh1NZ4K2FRMD1erfHiFV2eY2x2W0=";
owner = "aws";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-W/7pLy/27VatCdzUh1NZ4K2FRMD1erfHiFV2eY2x2W0=";
};

makeFlags = [ "FLEX=flex" ];
Expand All @@ -26,9 +26,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Framework for 'Trusted Language Extensions' in PostgreSQL";
homepage = "https://github.com/aws/${pname}";
homepage = "https://github.com/aws/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pgsodium.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ libsodium postgresql ];

src = fetchFromGitHub {
owner = "michelp";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-j5F1PPdwfQRbV8XJ8Mloi8FvZF0MTl4eyIJcBYQy1E4=";
owner = "michelp";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-j5F1PPdwfQRbV8XJ8Mloi8FvZF0MTl4eyIJcBYQy1E4=";
};

installPhase = ''
Expand All @@ -23,9 +23,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Modern cryptography for PostgreSQL";
homepage = "https://github.com/michelp/${pname}";
homepage = "https://github.com/michelp/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pgsql-http.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ curl postgresql ];

src = fetchFromGitHub {
owner = "pramsey";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-CPHfx7vhWfxkXsoKTzyFuTt47BPMvzi/pi1leGcuD60=";
owner = "pramsey";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-CPHfx7vhWfxkXsoKTzyFuTt47BPMvzi/pi1leGcuD60=";
};

installPhase = ''
Expand All @@ -23,9 +23,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "HTTP client for Postgres";
homepage = "https://github.com/pramsey/${pname}";
homepage = "https://github.com/pramsey/${pname}";
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
14 changes: 7 additions & 7 deletions ext/pgvector.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "pgvector";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ZNzq+dATZn9LUgeOczsaadr5hwdbt9y/+sAOPIdr77U=";
owner = "pgvector";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ZNzq+dATZn9LUgeOczsaadr5hwdbt9y/+sAOPIdr77U=";
};

installPhase = ''
Expand All @@ -23,9 +23,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Open-source vector similarity search for Postgres";
homepage = "https://github.com/${src.owner}/${src.repo}";
homepage = "https://github.com/${src.owner}/${src.repo}";
maintainers = with maintainers; [ olirice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
7 changes: 4 additions & 3 deletions ext/plv8.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, v8
, perl
, postgresql
# For test
# For test
, runCommand
, coreutils
, gnugrep
Expand Down Expand Up @@ -77,8 +77,9 @@ stdenv.mkDerivation (finalAttrs: {
postgresqlWithSelf = postgresql.withPackages (_: [
finalAttrs.finalPackage
]);
in {
smoke = runCommand "plv8-smoke-test" {} ''
in
{
smoke = runCommand "plv8-smoke-test" { } ''
export PATH=${lib.makeBinPath [
postgresqlWithSelf
coreutils
Expand Down
14 changes: 7 additions & 7 deletions ext/supautils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ stdenv.mkDerivation rec {
buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "supabase";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-cQ294UNhlPtnqngGTVLYPMbGcqhqjFk5y6WBz6nCZhI=";
owner = "supabase";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-cQ294UNhlPtnqngGTVLYPMbGcqhqjFk5y6WBz6nCZhI=";
};

installPhase = ''
Expand All @@ -21,9 +21,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "PostgreSQL extension for enhanced security";
homepage = "https://github.com/supabase/${pname}";
homepage = "https://github.com/supabase/${pname}";
maintainers = with maintainers; [ steve-chavez ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}
Loading

0 comments on commit 33d25b8

Please sign in to comment.