git.iko.soy/typeable/nixpkgs
on master help sign in
dvdisaster: 0.72.6 -> 0.79.5
d440623Tobias Geerinckx-Rice
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
2, glib, gtk2
2, glib, gtk2
3, enableSoftening ? true
3, enableSoftening ? true
4}:
4}:
5
5
6+let version = "0.79.5"; in
6stdenv.mkDerivation rec {
7stdenv.mkDerivation rec {
7− name = "dvdisaster-0.72.6";
8+ name = "dvdisaster-${version}";
8
9
9 src = fetchurl {
10 src = fetchurl {
10 url = "http://dvdisaster.net/downloads/${name}.tar.bz2";
11 url = "http://dvdisaster.net/downloads/${name}.tar.bz2";
11− sha256 = "e9787dea39aeafa38b26604752561bc895083c17b588489d857ac05c58be196b";
12+ sha256 = "0f8gjnia2fxcbmhl8b3qkr5b7idl8m855dw7xw2fnmbqwvcm6k4w";
12 };
13 };
13
14
15+ nativeBuildInputs = [ gettext pkgconfig which ];
16+ buildInputs = [ glib gtk2 ];
17+
14 patches = stdenv.lib.optional enableSoftening [
18 patches = stdenv.lib.optional enableSoftening [
15 ./encryption.patch
19 ./encryption.patch
16 ./dvdrom.patch
20 ./dvdrom.patch
@@ -21,8 +25,13 @@ stdenv.mkDerivation rec {
21 sed -i 's/dvdisaster48.png/dvdisaster/' contrib/dvdisaster.desktop
25 sed -i 's/dvdisaster48.png/dvdisaster/' contrib/dvdisaster.desktop
22 '';
26 '';
23
27
28+ configureFlags = [
24− # Explicit --docdir= is required for on-line help to work:
29+ # Explicit --docdir= is required for on-line help to work:
25− configureFlags = [ "--docdir=$out/share/doc" ];
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";
26
35
27 buildInputs = [
36 buildInputs = [
28 pkgconfig which gettext intltool
37 pkgconfig which gettext intltool
@@ -35,11 +44,13 @@ stdenv.mkDerivation rec {
35
44
36 for size in 16 24 32 48 64; do
45 for size in 16 24 32 48 64; do
37 mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps/
46 mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps/
47+ cp contrib/dvdisaster"$size".png \
38− cp contrib/dvdisaster"$size".png $out/share/icons/hicolor/"$size"x"$size"/apps/dvdisaster.png
48+ $out/share/icons/hicolor/"$size"x"$size"/apps/dvdisaster.png
39 done
49 done
40 '';
50 '';
41
51
42 meta = with stdenv.lib; {
52 meta = with stdenv.lib; {
53+ inherit version;
43 homepage = http://dvdisaster.net/;
54 homepage = http://dvdisaster.net/;
44 description = "Data loss/scratch/aging protection for CD/DVD media";
55 description = "Data loss/scratch/aging protection for CD/DVD media";
45 longDescription = ''
56 longDescription = ''
@@ -48,8 +59,8 @@ stdenv.mkDerivation rec {
48 data which is used to recover unreadable sectors if the disc becomes
59 data which is used to recover unreadable sectors if the disc becomes
49 damaged at a later time.
60 damaged at a later time.
50 '';
61 '';
51− license = licenses.gpl2;
62+ license = licenses.gpl3Plus;
52 platforms = platforms.linux;
63 platforms = platforms.linux;
53− maintainers = with maintainers; [ jgeerds ];
64+ maintainers = with maintainers; [ jgeerds nckx ];
54 };
65 };
55}
66}
pkgs/tools/cd-dvd/dvdisaster/encryption.patch+11−13
@@ -1,21 +1,19 @@
1Author: n/a
1Author: n/a
2Description: Disables to skip on encrypted disks (e.g. DVD with CSS-Encryption).
2Description: Disables to skip on encrypted disks (e.g. DVD with CSS-Encryption).
3
3
4−Index: dvdisaster/scsi-layer.c
4+diff -Naur dvdisaster-0.79.5.orig/scsi-layer.c dvdisaster-0.79.5/scsi-layer.c
5−===================================================================
6−--- dvdisaster.orig/scsi-layer.c 2012-04-08 21:51:10.995588783 +0900
5+--- dvdisaster-0.79.5.orig/scsi-layer.c 2015-10-28 21:56:57.000000000 +0100
7−+++ dvdisaster/scsi-layer.c 2012-04-08 21:51:29.259678075 +0900
6++++ dvdisaster-0.79.5/scsi-layer.c 2015-12-27 06:19:32.012253661 +0100
8−@@ -2693,11 +2693,12 @@
7+@@ -2712,12 +2712,6 @@
9− return NULL;
10 }
8 }
11 }
9 }
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−+*/
19
10
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+-
20 /* Create the bitmap of simulated defects */
17 /* Create the bitmap of simulated defects */
21
18
19+ if(Closure->simulateDefects)