Merge pull request #132664 from NixOS/backport-131414-to-release-21.05

[Backport release-21.05] perlPackages.SQLTranslator: fix some scripts issues
This commit is contained in:
Stig 2021-08-05 12:50:08 +02:00 committed by GitHub
commit 2689e7a5a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -18803,7 +18803,19 @@ let
sha256 = "096fq62iphmxgcfcayg4i0wf09y1rl1ar6hrcxfqsbrsmkwlzk8a";
};
buildInputs = [ FileShareDirInstall JSONMaybeXS TestDifferences TestException XMLWriter YAML ];
propagatedBuildInputs = [ CarpClan DBI FileShareDir Moo PackageVariant ParseRecDescent TryTiny ];
propagatedBuildInputs = [ CarpClan DBI FileShareDir Moo PackageVariant ParseRecDescent TryTiny GraphViz GD ];
postPatch = ''
patchShebangs script
'';
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = lib.optionalString stdenv.isDarwin ''
for file in $out/bin/*; do
shortenPerlShebang $file
done
'';
meta = {
description = "SQL DDL transformations and more";
license = with lib.licenses; [ artistic1 gpl1Plus ];