epub2txt2: use makeFlags instead of preConfigure, add mainProgram

This commit is contained in:
Daniel Nagy 2023-05-23 10:15:00 +02:00
parent c9fb720d6a
commit 5eb54a1cfb
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671

View file

@ -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";
};
}