Since 03eaa48 added perl.withPackages, there is a canonical way to
create a perl interpreter from a list of libraries, for use in script
shebangs or generic build inputs. This method is declarative (what we
are doing is clear), produces short shebangs[1] and needs not to wrap
existing scripts.
Unfortunately there are a few exceptions that I've found:
1. Scripts that are calling perl with the -T switch. This makes perl
ignore PERL5LIB, which is what perl.withPackages is using to inform
the interpreter of the library paths.
2. Perl packages that depends on libraries in their own path. This
is not possible because perl.withPackages works at build time. The
workaround is to add `-I $out/${perl.libPrefix}` to the shebang.
In all other cases I propose to switch to perl.withPackages.
[1]: https://lwn.net/Articles/779997/
* tgt: Add homepage
* tgt: tgt-admin needs lsof, sg3_utils and tgtadm
Otherwise it fails with return code 72057594037927935.
* tgt: libxslt and docbook_xsl not needed at runtime
They're only there to build the documentation.
* tgt: Install systemd tgtd.service
Resolves #38012
* tgt: Add JohnAZoidberg as maintainer
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgt-admin -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgt-admin --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgt-admin help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm -V` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm --version` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm -h` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm --help` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd -V` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd --version` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd -h` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd --help` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg -h` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg --help` and found version 1.0.73
- found 1.0.73 with grep in /nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73
- found 1.0.73 in filename of file in /nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73