postgresqlPackages: use lib.extendMkDerivation in postgresqlBuildExtension

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