Skip to content

Commit a3c2c21

Browse files
committed
feat: auto create multi version
1 parent 5959e9d commit a3c2c21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nix/ext/pg_cron.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ let
2121
};
2222
};
2323

24+
# Simple version string that concatenates all versions with dashes
25+
versionString = "multi-" + lib.concatStringsSep "-" (map (v: lib.replaceStrings ["."] ["-"] v) (lib.attrNames allVersions));
26+
2427
mkPgCron = pgCronVersion: { rev, hash, patches ? [] }: stdenv.mkDerivation {
2528
pname = "pg_cron";
2629
version = "${pgCronVersion}-pg${lib.versions.major postgresql.version}";
@@ -71,7 +74,7 @@ let
7174
in
7275
stdenv.mkDerivation {
7376
pname = "pg_cron-all";
74-
version = "multi-001"; #increment this if you change this package in any way
77+
version = versionString;
7578

7679
buildInputs = lib.attrValues allVersionsForPg;
7780

0 commit comments

Comments
 (0)