postgresqlPackages: use lib.extendMkDerivation in postgresqlBuildExtension

+8 -5
+8 -5
pkgs/servers/sql/postgresql/postgresqlBuildExtension.nix
··· 63 63 nix-update-script, 64 64 }: 65 65 66 - args: 66 + lib.extendMkDerivation { 67 + constructDrv = stdenv.mkDerivation; 67 68 68 - let 69 - postgresqlBuildExtension = 69 + excludeDrvArgNames = [ 70 + "enableUpdateScript" 71 + ]; 72 + 73 + extendDrvArgs = 70 74 finalAttrs: 71 75 { 72 76 enableUpdateScript ? true, ··· 145 149 '' 146 150 + prevAttrs.postInstall or ""; 147 151 }; 148 - in 149 - stdenv.mkDerivation (lib.extends postgresqlBuildExtension (lib.toFunction args)) 152 + }