epub2txt2: use makeFlags instead of preConfigure, add mainProgram
This commit is contained in:
parent
c9fb720d6a
commit
5eb54a1cfb
1 changed files with 2 additions and 6 deletions
|
@ -11,12 +11,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-zzcig5XNh9TqUHginsfoC47WrKavqi6k6ezir+OOMJk=";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -i Makefile -e 's!DESTDIR)!out)!'
|
||||
sed -i Makefile -e 's!/usr!!'
|
||||
'';
|
||||
|
||||
makeFlags = [ "CC:=$(CC)" ];
|
||||
makeFlags = [ "CC:=$(CC)" "PREFIX:=$(out)" ];
|
||||
|
||||
meta = {
|
||||
description = "A simple command-line utility for Linux, for extracting text from EPUB documents.";
|
||||
|
@ -24,5 +19,6 @@ stdenv.mkDerivation rec {
|
|||
license = lib.licenses.gpl3Only;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.leonid ];
|
||||
mainProgram = "epub2txt";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue