diff options
author | James Earl Douglas <james@earldouglas.com> | 2017-11-08 20:06:35 -0700 |
---|---|---|
committer | James Earl Douglas <james@earldouglas.com> | 2017-11-09 09:08:43 -0700 |
commit | 2dc5f7c74b9e082e5746e64abc1860af64f7b42c (patch) | |
tree | b1cff1ac7f4369c8be757ca92e82bed352a2ca07 /pkgs/applications/misc/ebook2cw | |
parent | b8abd97c3b19f172c21c9d4bb0a3357c89f3b587 (diff) |
ebook2cw: init at 0.8.2
Diffstat (limited to 'pkgs/applications/misc/ebook2cw')
-rw-r--r-- | pkgs/applications/misc/ebook2cw/configfile.patch | 11 | ||||
-rw-r--r-- | pkgs/applications/misc/ebook2cw/default.nix | 31 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/misc/ebook2cw/configfile.patch b/pkgs/applications/misc/ebook2cw/configfile.patch new file mode 100644 index 0000000000000..c7aafe5227a53 --- /dev/null +++ b/pkgs/applications/misc/ebook2cw/configfile.patch @@ -0,0 +1,11 @@ +--- 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/misc/ebook2cw/default.nix b/pkgs/applications/misc/ebook2cw/default.nix new file mode 100644 index 0000000000000..cce10258cf3bb --- /dev/null +++ b/pkgs/applications/misc/ebook2cw/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchsvn, lame, libvorbis }: + +stdenv.mkDerivation rec { + + name = "ebook2cw-${version}"; + version = "0.8.2"; + + src = fetchsvn { + url = "svn://svn.fkurz.net/ebook2cw/tags/${name}"; + sha256 = "1mvp3nz3k76v757792n9b7fcm5jm3jcwarl1k7cila9fi0c2rsiw"; + }; + + buildInputs = [ lame libvorbis ]; + + patches = [ ./configfile.patch ]; + + postPatch = '' + substituteInPlace Makefile --replace gcc cc + ''; + + makeFlags = [ "DESTDIR=$(out)" ]; + + meta = with stdenv.lib; { + description = "Convert ebooks to Morse MP3s/OGGs"; + homepage = http://fkurz.net/ham/ebook2cw.html; + license = licenses.gpl2; + platforms = platforms.all; + maintainers = with maintainers; [ earldouglas ]; + }; + +} |