fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / cd / cdimgtools / package.nix
blobc7eb90c088e65df7ea00e8b35dce1ed8f58b90f4
2   lib,
3   stdenv,
4   fetchFromRepoOrCz,
5   autoreconfHook,
6   makeWrapper,
7   libdvdcss,
8   libdvdread,
9   perl,
10   perlPackages,
11   asciidoc,
12   xmlto,
13   sourceHighlight,
14   docbook_xsl,
15   docbook_xml_dtd_45,
18 stdenv.mkDerivation {
19   pname = "cdimgtools";
20   version = "0.3";
22   src = fetchFromRepoOrCz {
23     repo = "cdimgtools";
24     rev = "version/0.3";
25     hash = "sha256-HFlXGmi6YcYP+ZAdu79lJHLBmtMEhW17gs4I2ekbr8M=";
26   };
28   nativeBuildInputs = [
29     autoreconfHook
30     makeWrapper
31     asciidoc
32     perlPackages.PodPerldoc
33     xmlto
34     sourceHighlight
35     docbook_xsl
36     docbook_xml_dtd_45
37   ];
39   buildInputs = [
40     perl
41     perlPackages.StringEscape
42     perlPackages.DataHexdumper
43     libdvdcss
44     libdvdread
45   ];
47   patches = [
48     ./nrgtool_fix_my.patch
49     ./removed_dvdcss_interface_2.patch
50   ];
52   postFixup = ''
53     for cmd in raw96cdconv nrgtool; do
54       wrapProgram "$out/bin/$cmd" --prefix PERL5LIB : "$PERL5LIB"
55     done
56   '';
58   outputs = [
59     "out"
60     "doc"
61   ];
63   installTargets = [
64     "install"
65     "install-doc"
66   ];
68   meta = with lib; {
69     homepage = "https://repo.or.cz/cdimgtools.git/blob_plain/refs/heads/release:/README.html";
70     description = "Tools to inspect and manipulate CD/DVD optical disc images";
71     license = licenses.gpl2Only;
72     maintainers = with maintainers; [ hhm ];
73     platforms = platforms.linux ++ platforms.darwin;
74   };