Merge pull request #55615 from hhm0/cdimgtools
cdimgtools,perlPackages.DataHexdumper: init at 0.3, init at 3.001
This commit is contained in:
commit
5fe4729bff
36
pkgs/tools/cd-dvd/cdimgtools/default.nix
Normal file
36
pkgs/tools/cd-dvd/cdimgtools/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv, fetchFromRepoOrCz, autoreconfHook, makeWrapper, libdvdcss, libdvdread, perl, perlPackages, asciidoc, xmlto, sourceHighlight, docbook_xsl, docbook_xml_dtd_45 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "cdimgtools-${version}";
|
||||||
|
version = "0.3";
|
||||||
|
|
||||||
|
src = fetchFromRepoOrCz {
|
||||||
|
repo = "cdimgtools";
|
||||||
|
rev = "version/0.3";
|
||||||
|
sha256 = "1hxg3glxj26fh9xnv184sfdc2wi4cnzvn7chz47wcqdsd0d5fn8w";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook makeWrapper asciidoc perlPackages.PodPerldoc xmlto sourceHighlight docbook_xsl docbook_xml_dtd_45 ];
|
||||||
|
|
||||||
|
buildInputs = [ perl perlPackages.StringEscape perlPackages.DataHexdumper libdvdcss libdvdread ];
|
||||||
|
|
||||||
|
patches = [ ./nrgtool_fix_my.patch ./removed_dvdcss_interface_2.patch];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
for cmd in raw96cdconv nrgtool; do
|
||||||
|
wrapProgram "$out/bin/$cmd" --prefix PERL5LIB : "$PERL5LIB"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputs = [ "out" "doc" ];
|
||||||
|
|
||||||
|
installTargets = [ "install" "install-doc" ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://repo.or.cz/cdimgtools.git/blob_plain/refs/heads/release:/README.html;
|
||||||
|
description = "Tools to inspect and manipulate CD/DVD optical disc images";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
maintainers = with maintainers; [ hhm ];
|
||||||
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
|
};
|
||||||
|
}
|
12
pkgs/tools/cd-dvd/cdimgtools/nrgtool_fix_my.patch
Normal file
12
pkgs/tools/cd-dvd/cdimgtools/nrgtool_fix_my.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Fixes an error in nrgtool.
|
||||||
|
--- a/nrgtool
|
||||||
|
+++ b/nrgtool
|
||||||
|
@@ -162,7 +162,7 @@ sub process_file {
|
||||||
|
}
|
||||||
|
seek $nrg, 0, SEEK_SET if ($iff_only);
|
||||||
|
seek $nrg, $offset, SEEK_SET unless ($iff_only);
|
||||||
|
- while (my $_ = read_chunk($nrg, $iff)) {
|
||||||
|
+ while ($_ = read_chunk($nrg, $iff)) {
|
||||||
|
if ($_ < -1) {
|
||||||
|
warn "ERROR while reading an IFF chunk; aborting\n";
|
||||||
|
return;
|
@ -0,0 +1,53 @@
|
|||||||
|
Removes the deprecated and removed `dvdcss_interface_2` libdvdcss function.
|
||||||
|
|
||||||
|
This does not change any functionality; it only modifies the printing of software version information.
|
||||||
|
--- a/cssdec.c
|
||||||
|
+++ b/cssdec.c
|
||||||
|
@@ -102,8 +102,8 @@ int main( int argc, char *argv[] )
|
||||||
|
b_keyonly = 1;
|
||||||
|
break;
|
||||||
|
case 'V':
|
||||||
|
- printf( "%s version %s (libdvdcss version %s)\n",
|
||||||
|
- progname, progversion, dvdcss_interface_2 );
|
||||||
|
+ printf( "%s version %s\n",
|
||||||
|
+ progname, progversion );
|
||||||
|
exit( EX_SUCCESS );
|
||||||
|
break;
|
||||||
|
case '?':
|
||||||
|
@@ -126,8 +126,8 @@ int main( int argc, char *argv[] )
|
||||||
|
if( argc >= 3 ) end = (int)strtol( argv[2], (char **)NULL, 0 );
|
||||||
|
|
||||||
|
/* Initialize libdvdcss */
|
||||||
|
- printe( 2, "%s version %s (libdvdcss version %s)",
|
||||||
|
- progname, progversion, dvdcss_interface_2 );
|
||||||
|
+ printe( 2, "%s version %s",
|
||||||
|
+ progname, progversion );
|
||||||
|
dvdcss = dvdcss_open( (char *)dvdfile );
|
||||||
|
if( dvdcss == NULL )
|
||||||
|
{
|
||||||
|
diff --git a/dvdimgdecss.c b/dvdimgdecss.c
|
||||||
|
index 0b7006d..b7d251a 100644
|
||||||
|
--- a/dvdimgdecss.c
|
||||||
|
+++ b/dvdimgdecss.c
|
||||||
|
@@ -157,8 +157,8 @@ int main( int argc, char *argv[] )
|
||||||
|
dvdread_decrypt = 1;
|
||||||
|
break;
|
||||||
|
case 'V':
|
||||||
|
- printf( "%s version %s (libdvdcss version %s)\n",
|
||||||
|
- progname, progversion, dvdcss_interface_2 );
|
||||||
|
+ printf( "%s version %s\n",
|
||||||
|
+ progname, progversion );
|
||||||
|
exit( EX_SUCCESS );
|
||||||
|
break;
|
||||||
|
case '?':
|
||||||
|
@@ -180,8 +180,8 @@ int main( int argc, char *argv[] )
|
||||||
|
if( !imgfile ) verbosity++;
|
||||||
|
|
||||||
|
/* Open the DVD */
|
||||||
|
- printe( 2, "%s: version %s (libdvdcss version %s)\n",
|
||||||
|
- progname, progversion, dvdcss_interface_2 );
|
||||||
|
+ printe( 2, "%s: version %s\n",
|
||||||
|
+ progname, progversion );
|
||||||
|
dvdcss = dvdcss_open( dvdfile );
|
||||||
|
if( dvdcss == NULL ) {
|
||||||
|
printe( 1, "opening of the DVD (%s) with libdvdcss failed\n", dvdfile );
|
@ -1871,6 +1871,8 @@ in
|
|||||||
|
|
||||||
cdi2iso = callPackage ../tools/cd-dvd/cdi2iso { };
|
cdi2iso = callPackage ../tools/cd-dvd/cdi2iso { };
|
||||||
|
|
||||||
|
cdimgtools = callPackage ../tools/cd-dvd/cdimgtools { };
|
||||||
|
|
||||||
cdrdao = callPackage ../tools/cd-dvd/cdrdao { };
|
cdrdao = callPackage ../tools/cd-dvd/cdrdao { };
|
||||||
|
|
||||||
cdrkit = callPackage ../tools/cd-dvd/cdrkit { };
|
cdrkit = callPackage ../tools/cd-dvd/cdrkit { };
|
||||||
|
@ -3256,6 +3256,18 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DataHexdumper = buildPerlPackage rec {
|
||||||
|
name = "Data-Hexdumper-3.0001";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://cpan/authors/id/D/DC/DCANTRELL/${name}.tar.gz";
|
||||||
|
sha256 = "f9243cbe8affed5045fe4df505726a7a7289471e30c51ac065b3ed6ce0d1a604";
|
||||||
|
};
|
||||||
|
meta = {
|
||||||
|
description = "Make binary data human-readable";
|
||||||
|
license = with stdenv.lib.licenses; [ artistic1 gpl2 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
DataHierarchy = buildPerlPackage {
|
DataHierarchy = buildPerlPackage {
|
||||||
name = "Data-Hierarchy-0.34";
|
name = "Data-Hierarchy-0.34";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user