dream2nix/overrides/python/psycopg2/default.nix
DavHau 87c725e8db python: remove catchConflicts = false overrides
Those are not needed anymore since the hook has been improved in nixpkgs
2024-03-17 07:32:33 +00:00

20 lines
432 B
Nix

{
config,
lib,
dream2nix,
...
}: let
isSdist = lib.hasSuffix ".tar.gz" config.mkDerivation.src;
in {
deps = {nixpkgs, ...}: {
inherit (nixpkgs) postgresql;
};
# enable overrides from nixpkgs
imports = [dream2nix.modules.dream2nix.nixpkgs-overrides];
nixpkgs-overrides.enable = isSdist;
# add postgresql to nativeBuildInputs
mkDerivation.nativeBuildInputs = lib.mkIf isSdist [config.deps.postgresql];
}