Skip to content

Commit 0ecbd48

Browse files
committed
chore: include lib
1 parent f1b6c72 commit 0ecbd48

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

nix/checks.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
PGSODIUM_GETKEY = "${getkey-script}/bin/pgsodium-getkey";
7777
PGSQL_DEFAULT_PORT = pgPort;
7878
};
79+
version = majorVersion;
7980
};
8081

8182
getVersionArg =

nix/packages/lib.nix

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,9 @@
1414
pkgs,
1515
name,
1616
extraSubstitutions ? { },
17+
version,
1718
}:
1819
let
19-
pgVersion =
20-
if name == psql_15 then
21-
"15"
22-
else if name == psql_17 then
23-
"17"
24-
else
25-
"unknown";
26-
version = builtins.trace "pgpkg.version is: ${pgVersion} from ${name} " pgVersion;
27-
2820
paths =
2921
{
3022
migrationsDir = builtins.path {
@@ -73,7 +65,7 @@
7365
};
7466
}
7567
// (
76-
if pgVersion == "15" || version == "15" then
68+
if version == "15" then
7769
{
7870
pgHbaConfigFile = builtins.path {
7971
name = "pg_hba.conf";

0 commit comments

Comments
 (0)