pgformatter: 5.5 -> 5.6 (#400927)
This commit is contained in:
@@ -3,19 +3,18 @@
|
||||
stdenv,
|
||||
perlPackages,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
shortenPerlShebang,
|
||||
}:
|
||||
|
||||
perlPackages.buildPerlPackage rec {
|
||||
pname = "pgformatter";
|
||||
version = "5.5";
|
||||
version = "5.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "darold";
|
||||
repo = "pgFormatter";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-4KtrsckO9Q9H0yIM0877YvWaDW02CQVAQiOKD919e9w=";
|
||||
hash = "sha256-EJLAP1uBmWxWEsdLJYTuViMv4o0iEi2fqy79ixyRijU=";
|
||||
};
|
||||
|
||||
outputs = [ "out" ];
|
||||
@@ -25,14 +24,6 @@ perlPackages.buildPerlPackage rec {
|
||||
# Avoid creating perllocal.pod, which contains a timestamp
|
||||
installTargets = [ "pure_install" ];
|
||||
|
||||
patches = [
|
||||
# Fix an uninitialized variable error. Remove with the next release.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/darold/pgFormatter/commit/c2622c47d48cee47effecbf58a588c3cd3a7bf1a.patch";
|
||||
sha256 = "sha256-WnQIOvfuzL2HrwtL0HaaYObrBxhXDu82jxGcqggQVhc=";
|
||||
})
|
||||
];
|
||||
|
||||
# Makefile.PL only accepts DESTDIR and INSTALLDIRS, but we need to set more to make this work for NixOS.
|
||||
patchPhase = ''
|
||||
substituteInPlace pg_format \
|
||||
|
||||
Reference in New Issue
Block a user