Merge pull request #233569 from nagy/epub2txt2

epub2txt2: use makeFlags instead of preConfigure, add mainProgram
This commit is contained in:
Weijia Wang 2023-05-23 13:01:34 +03:00 committed by GitHub
commit 45d4735498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,12 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-zzcig5XNh9TqUHginsfoC47WrKavqi6k6ezir+OOMJk="; sha256 = "sha256-zzcig5XNh9TqUHginsfoC47WrKavqi6k6ezir+OOMJk=";
}; };
preConfigure = '' makeFlags = [ "CC:=$(CC)" "PREFIX:=$(out)" ];
sed -i Makefile -e 's!DESTDIR)!out)!'
sed -i Makefile -e 's!/usr!!'
'';
makeFlags = [ "CC:=$(CC)" ];
meta = { meta = {
description = "A simple command-line utility for Linux, for extracting text from EPUB documents."; 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; license = lib.licenses.gpl3Only;
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.leonid ]; maintainers = [ lib.maintainers.leonid ];
mainProgram = "epub2txt";
}; };
} }