nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

pgformatter: fix uninitialized variable error

+9 -1
+9 -1
pkgs/development/tools/pgformatter/default.nix
··· 1 - { lib, stdenv, perlPackages, fetchFromGitHub, shortenPerlShebang }: 1 + { lib, stdenv, perlPackages, fetchFromGitHub, fetchpatch, shortenPerlShebang }: 2 2 3 3 perlPackages.buildPerlPackage rec { 4 4 pname = "pgformatter"; ··· 17 17 18 18 # Avoid creating perllocal.pod, which contains a timestamp 19 19 installTargets = [ "pure_install" ]; 20 + 21 + patches = [ 22 + # Fix an uninitialized variable error. Remove with the next release. 23 + (fetchpatch { 24 + url = "https://github.com/darold/pgFormatter/commit/c2622c47d48cee47effecbf58a588c3cd3a7bf1a.patch"; 25 + sha256 = "sha256-WnQIOvfuzL2HrwtL0HaaYObrBxhXDu82jxGcqggQVhc="; 26 + }) 27 + ]; 20 28 21 29 # Makefile.PL only accepts DESTDIR and INSTALLDIRS, but we need to set more to make this work for NixOS. 22 30 patchPhase = ''