1{
2 lib,
3 stdenv,
4 fetchurl,
5 fetchpatch,
6 libdvdread,
7 libdvdcss,
8 dvdauthor,
9}:
10
11stdenv.mkDerivation rec {
12 version = "0.4.2";
13 pname = "dvdbackup";
14
15 src = fetchurl {
16 url = "mirror://sourceforge/dvdbackup/${pname}-${version}.tar.xz";
17 sha256 = "1rl3h7waqja8blmbpmwy01q9fgr5r0c32b8dy3pbf59bp3xmd37g";
18 };
19
20 buildInputs = [
21 libdvdread
22 libdvdcss
23 dvdauthor
24 ];
25
26 # see https://bugs.launchpad.net/dvdbackup/+bug/1869226
27 patchFlags = [ "-p0" ];
28 patches = [
29 (fetchpatch {
30 url = "https://git.slackbuilds.org/slackbuilds/plain/multimedia/dvdbackup/patches/dvdbackup-dvdread-6.1.patch";
31 sha256 = "1v3xl01bwq1592i5x5dyh95r0mmm1zvvwf92fgjc0smr0k3davfz";
32 })
33 ];
34
35 meta = {
36 description = "Tool to rip video DVDs from the command line";
37 homepage = "https://dvdbackup.sourceforge.net/";
38 license = lib.licenses.gpl3Plus;
39 maintainers = [ lib.maintainers.bradediger ];
40 platforms = lib.platforms.linux;
41 mainProgram = "dvdbackup";
42 };
43}