git.iko.soy/typeable/nixpkgs
on master help sign in
dvdisaster: 0.72.6 -> 0.79.5
commitd4406237a9731f1a9f3330f675bf57b8eb58a048 authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateSun 27 Dec 2015, 06:33 (11 years ago) parentbd8731a
2 files changed+30−21
pkgs/tools/cd-dvd/dvdisaster/default.nix+19−8 pkgs/tools/cd-dvd/dvdisaster/encryption.patch+11−13
pkgs/tools/cd-dvd/dvdisaster/default.nix+19−8
@@ -1,16 +1,20 @@
1−{ stdenv, fetchurl, pkgconfig, which, gettext, intltool
1+{ stdenv, fetchurl, pkgconfig, gettext, which
22, glib, gtk2
33, enableSoftening ? true
44}:
55
6+let version = "0.79.5"; in
67stdenv.mkDerivation rec {
7− name = "dvdisaster-0.72.6";
8+ name = "dvdisaster-${version}";
89
910 src = fetchurl {
1011 url = "http://dvdisaster.net/downloads/${name}.tar.bz2";
11− sha256 = "e9787dea39aeafa38b26604752561bc895083c17b588489d857ac05c58be196b";
12+ sha256 = "0f8gjnia2fxcbmhl8b3qkr5b7idl8m855dw7xw2fnmbqwvcm6k4w";
1213 };
1314
15+ nativeBuildInputs = [ gettext pkgconfig which ];
16+ buildInputs = [ glib gtk2 ];
17+
1418 patches = stdenv.lib.optional enableSoftening [
1519 ./encryption.patch
1620 ./dvdrom.patch
@@ -21,8 +25,13 @@ stdenv.mkDerivation rec {
2125 sed -i 's/dvdisaster48.png/dvdisaster/' contrib/dvdisaster.desktop
2226 '';
2327
24− # Explicit --docdir= is required for on-line help to work:
25− configureFlags = [ "--docdir=$out/share/doc" ];
28+ configureFlags = [
29+ # Explicit --docdir= is required for on-line help to work:
30+ "--docdir=$out/share/doc"
31+ "--with-nls=yes"
32+ "--with-embedded-src-path=no"
33+ ] ++ stdenv.lib.optional (builtins.elem stdenv.system
34+ stdenv.lib.platforms.x86_64) "--with-sse2=yes";
2635
2736 buildInputs = [
2837 pkgconfig which gettext intltool
@@ -35,11 +44,13 @@ stdenv.mkDerivation rec {
3544
3645 for size in 16 24 32 48 64; do
3746 mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps/
38− cp contrib/dvdisaster"$size".png $out/share/icons/hicolor/"$size"x"$size"/apps/dvdisaster.png
47+ cp contrib/dvdisaster"$size".png \
48+ $out/share/icons/hicolor/"$size"x"$size"/apps/dvdisaster.png
3949 done
4050 '';
4151
4252 meta = with stdenv.lib; {
53+ inherit version;
4354 homepage = http://dvdisaster.net/;
4455 description = "Data loss/scratch/aging protection for CD/DVD media";
4556 longDescription = ''
@@ -48,8 +59,8 @@ stdenv.mkDerivation rec {
4859 data which is used to recover unreadable sectors if the disc becomes
4960 damaged at a later time.
5061 '';
51− license = licenses.gpl2;
62+ license = licenses.gpl3Plus;
5263 platforms = platforms.linux;
53− maintainers = with maintainers; [ jgeerds ];
64+ maintainers = with maintainers; [ jgeerds nckx ];
5465 };
5566}
pkgs/tools/cd-dvd/dvdisaster/encryption.patch+11−13
@@ -1,21 +1,19 @@
11Author: n/a
22Description: Disables to skip on encrypted disks (e.g. DVD with CSS-Encryption).
33
4−Index: dvdisaster/scsi-layer.c
5−===================================================================
6−--- dvdisaster.orig/scsi-layer.c 2012-04-08 21:51:10.995588783 +0900
7−+++ dvdisaster/scsi-layer.c 2012-04-08 21:51:29.259678075 +0900
8−@@ -2693,11 +2693,12 @@
9− return NULL;
4+diff -Naur dvdisaster-0.79.5.orig/scsi-layer.c dvdisaster-0.79.5/scsi-layer.c
5+--- dvdisaster-0.79.5.orig/scsi-layer.c 2015-10-28 21:56:57.000000000 +0100
6++++ dvdisaster-0.79.5/scsi-layer.c 2015-12-27 06:19:32.012253661 +0100
7+@@ -2712,12 +2712,6 @@
108 }
119 }
12−-
13−+/*
14− if(dh->mainType == DVD && query_copyright(dh))
15− { CloseDevice(dh);
16− Stop(_("This software does not support encrypted media.\n"));
17− }
18−+*/
1910
11+- if(dh->mainType == DVD && query_copyright(dh))
12+- { CloseImage(image);
13+- Stop(_("This software does not support encrypted media.\n"));
14+- return NULL;
15+- }
16+-
2017 /* Create the bitmap of simulated defects */
2118
19+ if(Closure->simulateDefects)