Commit graph

17 commits

Author SHA1 Message Date
rnhmjoj 61b7cab481
treewide: use perl.withPackages when possible
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/
2021-03-31 21:35:37 +02:00
R. RyanTM b721ddeec4 tgt: 1.0.79 -> 1.0.80 2021-03-09 22:58:36 +00:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Graham Christensen bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Daniel Schaefer 2f5beaec08 tgt: Install systemd tgtd.service (#65565)
* 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
2019-07-29 23:21:00 +00:00
R. RyanTM e50674b6b2 tgt: 1.0.78 -> 1.0.79
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/tgt/versions
2019-07-17 09:34:00 +02:00
Will Dietz 0fc454c57d
tgt: 1.0.77 -> 1.0.78, touchup 2019-06-04 14:56:00 -05:00
R. RyanTM 4c86b24d7a tgt: 1.0.76 -> 1.0.77
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/tgt/versions
2019-05-13 00:10:57 -07:00
R. RyanTM c5168ab16d tgt: 1.0.75 -> 1.0.76
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/tgt/versions
2019-04-16 18:29:23 +02:00
R. RyanTM 39789683d0 tgt: 1.0.74 -> 1.0.75 (#57489)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/tgt/versions
2019-03-14 00:09:50 +01:00
Jan Tojnar fadd95af14
tgt: Do not abuse DESTDIR 2018-12-22 22:29:54 +01:00
R. RyanTM 814c68a503 tgt: 1.0.73 -> 1.0.74
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/tgt/versions
2018-11-08 11:00:39 -08:00
Ryan Mulligan 393644e28c tgt: 1.0.63 -> 1.0.73
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
2018-02-28 11:48:19 +01:00
Tuomas Tynkkynen c3bcb4e1ce treewide: Use explicit 'dev' references to glibc 2016-08-30 03:11:09 +03:00
Franz Pletz e07b06d12a tgt: 1.0.60 -> 1.0.63 2016-05-03 16:15:20 +02:00
Pascal Wittmann 53a132a3a4 tgt: fix build
xsltproc tried to download docbook.xsl
2015-10-12 12:27:54 +02:00
michael bishop 866e3932c7 tgt: init at 1.0.60 2015-09-24 16:42:06 -03:00