1 { lib, stdenv, fetchFromRepoOrCz, autoreconfHook, makeWrapper, libdvdcss, libdvdread, perl, perlPackages, asciidoc, xmlto, sourceHighlight, docbook_xsl, docbook_xml_dtd_45 }:
7 src = fetchFromRepoOrCz {
10 hash = "sha256-HFlXGmi6YcYP+ZAdu79lJHLBmtMEhW17gs4I2ekbr8M=";
13 nativeBuildInputs = [ autoreconfHook makeWrapper asciidoc perlPackages.PodPerldoc xmlto sourceHighlight docbook_xsl docbook_xml_dtd_45 ];
15 buildInputs = [ perl perlPackages.StringEscape perlPackages.DataHexdumper libdvdcss libdvdread ];
17 patches = [ ./nrgtool_fix_my.patch ./removed_dvdcss_interface_2.patch];
20 for cmd in raw96cdconv nrgtool; do
21 wrapProgram "$out/bin/$cmd" --prefix PERL5LIB : "$PERL5LIB"
25 outputs = [ "out" "doc" ];
27 installTargets = [ "install" "install-doc" ];
30 homepage = "https://repo.or.cz/cdimgtools.git/blob_plain/refs/heads/release:/README.html";
31 description = "Tools to inspect and manipulate CD/DVD optical disc images";
32 license = licenses.gpl2Only;
33 maintainers = with maintainers; [ hhm ];
34 platforms = platforms.linux ++ platforms.darwin;