Skip to content

Commit be77bba

Browse files
committed
build(nix): Add postgresql_17 to nixpkgs overlay
1 parent 070a307 commit be77bba

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
url = "github:IntersectMBO/cardano-haskell-packages?ref=repo";
2525
flake = false;
2626
};
27+
# Note[PostgreSQL 17]: This is a workaround to get postgresql_17 from nixpkgs. It's
28+
# available in nixpkgs unstable, but has not been updated in haskell.nix yet. Remove
29+
# this after the next time haskell.nix updates nixpkgs.
30+
nixpkgsUpstream.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2731
};
2832

2933
outputs = { self, ... }@inputs:
@@ -36,6 +40,12 @@
3640
in
3741
inputs.utils.lib.eachSystem supportedSystems (system:
3842
let
43+
# TODO: Remove me (See Note[PostgreSQL 17]).
44+
nixpkgsUpstream = import inputs.nixpkgsUpstream {
45+
inherit system;
46+
inherit (inputs.haskellNix) config;
47+
};
48+
3949
nixpkgs = import inputs.nixpkgs {
4050
inherit system;
4151
inherit (inputs.haskellNix) config;
@@ -92,6 +102,11 @@
92102
doCheck = false;
93103
});
94104
})
105+
106+
# TODO: Remove me (See Note[PostgreSQL 17])
107+
(final: prev: {
108+
postgresql_17 = nixpkgsUpstream.postgresql_17;
109+
})
95110
];
96111
};
97112

0 commit comments

Comments
 (0)