diff --git a/pkgs/applications/radio/ebook2cw/Makefile.patch b/pkgs/applications/radio/ebook2cw/Makefile.patch deleted file mode 100644 index be6c32e4147..00000000000 --- a/pkgs/applications/radio/ebook2cw/Makefile.patch +++ /dev/null @@ -1,12 +0,0 @@ -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/default.nix b/pkgs/applications/radio/ebook2cw/default.nix index 4c8cd53ebd4..6c3fbc16c40 100644 --- a/pkgs/applications/radio/ebook2cw/default.nix +++ b/pkgs/applications/radio/ebook2cw/default.nix @@ -1,18 +1,24 @@ -{ lib, stdenv, fetchgit, lame, libvorbis, gettext }: +{ lib, stdenv, fetchgit, fetchpatch, lame, libvorbis, gettext }: stdenv.mkDerivation rec { pname = "ebook2cw"; - version = "0.8.3"; + version = "0.8.4"; src = fetchgit { url = "https://git.fkurz.net/dj1yfk/ebook2cw.git"; rev = "${pname}-${version}"; - sha256 = "0jqmnjblv3wzr0ppqzndzd8wg02nlkvzg1fqw14vyyp76sdjsh46"; + sha256 = "0h7lg59m3dcydzkc8szipnwzag8fqwwvppa9fspn5xqd4blpcjd5"; }; - buildInputs = [ lame libvorbis gettext ]; + patches = [ + # Fixes non-GCC compilers and a missing directory in the install phase. + (fetchpatch { + url = "https://git.fkurz.net/dj1yfk/ebook2cw/commit/eb5742e70b042cf98a04440395c34390b171c035.patch"; + sha256 = "1m5f819cj3fj1piss0a5ciib3jqrqdc14lp3i3dszw4bg9v1pgyd"; + }) + ]; - patches = [ ./Makefile.patch ]; + buildInputs = [ lame libvorbis gettext ]; makeFlags = [ "DESTDIR=$(out)" ];