Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 75 lines 1.4 kB view raw
1{ 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, 16}: 17 18stdenv.mkDerivation { 19 pname = "cdimgtools"; 20 version = "0.3"; 21 22 src = fetchFromRepoOrCz { 23 repo = "cdimgtools"; 24 rev = "version/0.3"; 25 hash = "sha256-HFlXGmi6YcYP+ZAdu79lJHLBmtMEhW17gs4I2ekbr8M="; 26 }; 27 28 nativeBuildInputs = [ 29 autoreconfHook 30 makeWrapper 31 asciidoc 32 perlPackages.PodPerldoc 33 xmlto 34 sourceHighlight 35 docbook_xsl 36 docbook_xml_dtd_45 37 ]; 38 39 buildInputs = [ 40 perl 41 perlPackages.StringEscape 42 perlPackages.DataHexdumper 43 libdvdcss 44 libdvdread 45 ]; 46 47 patches = [ 48 ./nrgtool_fix_my.patch 49 ./removed_dvdcss_interface_2.patch 50 ]; 51 52 postFixup = '' 53 for cmd in raw96cdconv nrgtool; do 54 wrapProgram "$out/bin/$cmd" --prefix PERL5LIB : "$PERL5LIB" 55 done 56 ''; 57 58 outputs = [ 59 "out" 60 "doc" 61 ]; 62 63 installTargets = [ 64 "install" 65 "install-doc" 66 ]; 67 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 }; 75}