diff --git a/pkgs/applications/radio/ebook2cw/Makefile.patch b/pkgs/applications/radio/ebook2cw/Makefile.patch new file mode 100644 index 000000000000..be6c32e41470 --- /dev/null +++ b/pkgs/applications/radio/ebook2cw/Makefile.patch @@ -0,0 +1,12 @@ +diff --git a/Makefile b/Makefile +index 005d60d..f69c7fe 100644 +--- a/Makefile ++++ b/Makefile +@@ -41,6 +41,7 @@ install: + install -d -v $(DESTDIR)/bin/ + install -d -v $(DESTDIR)/share/doc/ebook2cw/ + install -d -v $(DESTDIR)/share/doc/ebook2cw/examples/ ++ install -d -v $(DESTDIR)/share/locale/de/LC_MESSAGES/ + install -s -m 0755 ebook2cw $(DESTDIR)/bin/ + install -m 0644 ebook2cw.1 $(DESTDIR)/share/man/man1/ + install -m 0644 README $(DESTDIR)/share/doc/ebook2cw/ diff --git a/pkgs/applications/radio/ebook2cw/configfile.patch b/pkgs/applications/radio/ebook2cw/configfile.patch deleted file mode 100644 index c7aafe5227a5..000000000000 --- a/pkgs/applications/radio/ebook2cw/configfile.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/ebook2cw.c 2017-11-08 19:52:58.298131348 -0700 -+++ b/ebook2cw.c 2017-11-08 19:53:02.588231067 -0700 -@@ -136,7 +136,7 @@ - char isomap[256][4]; /* by these strings */ - char utf8map[256][8]; - -- char configfile[1025]; -+ char configfile[2048]; - - char id3_author[80], - id3_title[80], diff --git a/pkgs/applications/radio/ebook2cw/default.nix b/pkgs/applications/radio/ebook2cw/default.nix index d273594f4c90..5bd9e47ab716 100644 --- a/pkgs/applications/radio/ebook2cw/default.nix +++ b/pkgs/applications/radio/ebook2cw/default.nix @@ -1,17 +1,18 @@ -{ stdenv, fetchsvn, lame, libvorbis }: +{ stdenv, fetchgit, lame, libvorbis, gettext }: stdenv.mkDerivation rec { pname = "ebook2cw"; - version = "0.8.2"; + version = "0.8.3"; - src = fetchsvn { - url = "svn://svn.fkurz.net/ebook2cw/tags/${pname}-${version}"; - sha256 = "1mvp3nz3k76v757792n9b7fcm5jm3jcwarl1k7cila9fi0c2rsiw"; + src = fetchgit { + url = "https://git.fkurz.net/dj1yfk/ebook2cw.git"; + rev = "${pname}-${version}"; + sha256 = "0jqmnjblv3wzr0ppqzndzd8wg02nlkvzg1fqw14vyyp76sdjsh46"; }; - buildInputs = [ lame libvorbis ]; + buildInputs = [ lame libvorbis gettext ]; - patches = [ ./configfile.patch ]; + patches = [ ./Makefile.patch ]; makeFlags = [ "DESTDIR=$(out)" ];