Skip to content

Commit e54bd25

Browse files
committed
chore: check version by name
1 parent dd59df3 commit e54bd25

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nix/packages/lib.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
extraSubstitutions ? { },
1616
}:
1717
let
18-
inherit (lib) versions getVersion;
19-
pgVersion = versions.major (getVersion postgresPkg);
18+
pgVersion =
19+
if name == psql_15 then
20+
"15"
21+
else if name == psql_17 then
22+
"17"
23+
else
24+
"unknown";
2025

2126
paths =
2227
{

0 commit comments

Comments
 (0)