nixpkgs/pkgs/tools/cd-dvd/xorriso/default.nix
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

38 lines
1.2 KiB
Nix

{ fetchurl, lib, stdenv, libcdio, zlib, bzip2, readline, acl, attr, libiconv }:
stdenv.mkDerivation rec {
name = "xorriso-${version}";
version = "1.5.2";
src = fetchurl {
url = "mirror://gnu/xorriso/${name}.tar.gz";
sha256 = "1rqpzj95f70jfwpn4lamasfgqpizjsipz12aprdhri777b4zas9v";
};
doCheck = true;
buildInputs = [ libcdio zlib bzip2 readline libiconv ]
++ stdenv.lib.optionals stdenv.isLinux [ acl attr ];
meta = with lib; {
description = "ISO 9660 Rock Ridge file system manipulator";
longDescription =
'' GNU xorriso copies file objects from POSIX compliant filesystems
into Rock Ridge enhanced ISO 9660 filesystems and allows
session-wise manipulation of such filesystems. It can load the
management information of existing ISO images and it writes the
session results to optical media or to filesystem objects. Vice
versa xorriso is able to copy file objects out of ISO 9660
filesystems.
'';
license = licenses.gpl3Plus;
homepage = "https://www.gnu.org/software/xorriso/";
maintainers = [ maintainers.vrthra ];
platforms = platforms.unix;
};
}