Skip to content

Commit

Permalink
ebook2cw: fix darwin build (#122801)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed May 17, 2021
1 parent cb8463c commit 04e409b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
12 changes: 0 additions & 12 deletions pkgs/applications/radio/ebook2cw/Makefile.patch

This file was deleted.

16 changes: 11 additions & 5 deletions 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)" ];

Expand Down

0 comments on commit 04e409b

Please sign in to comment.