···11-{ lib, stdenv, perlPackages, fetchFromGitHub, shortenPerlShebang }:11+{ lib, stdenv, perlPackages, fetchFromGitHub, fetchpatch, shortenPerlShebang }:2233perlPackages.buildPerlPackage rec {44 pname = "pgformatter";···17171818 # Avoid creating perllocal.pod, which contains a timestamp1919 installTargets = [ "pure_install" ];2020+2121+ patches = [2222+ # Fix an uninitialized variable error. Remove with the next release.2323+ (fetchpatch {2424+ url = "https://github.com/darold/pgFormatter/commit/c2622c47d48cee47effecbf58a588c3cd3a7bf1a.patch";2525+ sha256 = "sha256-WnQIOvfuzL2HrwtL0HaaYObrBxhXDu82jxGcqggQVhc=";2626+ })2727+ ];20282129 # Makefile.PL only accepts DESTDIR and INSTALLDIRS, but we need to set more to make this work for NixOS.2230 patchPhase = ''