mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #233569 from nagy/epub2txt2
epub2txt2: use makeFlags instead of preConfigure, add mainProgram
This commit is contained in:
commit
45d4735498
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user