Skip to content

Commit

Permalink
build(nix): Add postgresql_17 to nixpkgs overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Jan 27, 2025
1 parent 070a307 commit be77bba
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

outputs = { self, ... }@inputs:
Expand All @@ -36,6 +40,12 @@
in
inputs.utils.lib.eachSystem supportedSystems (system:
let
# TODO: Remove me (See Note[PostgreSQL 17]).
nixpkgsUpstream = import inputs.nixpkgsUpstream {
inherit system;
inherit (inputs.haskellNix) config;
};

nixpkgs = import inputs.nixpkgs {
inherit system;
inherit (inputs.haskellNix) config;
Expand Down Expand Up @@ -92,6 +102,11 @@
doCheck = false;
});
})

# TODO: Remove me (See Note[PostgreSQL 17])
(final: prev: {
postgresql_17 = nixpkgsUpstream.postgresql_17;
})
];
};

Expand Down

0 comments on commit be77bba

Please sign in to comment.