docfd: 3.0.0 -> 4.0.0
This commit is contained in:
parent
dee679f466
commit
cfbb643b7d
|
@ -3,13 +3,16 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python3
|
, python3
|
||||||
, dune_3
|
, dune_3
|
||||||
|
, makeWrapper
|
||||||
|
, pandoc
|
||||||
|
, poppler_utils
|
||||||
, testers
|
, testers
|
||||||
, docfd
|
, docfd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
ocamlPackages.buildDunePackage rec {
|
ocamlPackages.buildDunePackage rec {
|
||||||
pname = "docfd";
|
pname = "docfd";
|
||||||
version = "3.0.0";
|
version = "4.0.0";
|
||||||
|
|
||||||
minimalOCamlVersion = "5.1";
|
minimalOCamlVersion = "5.1";
|
||||||
|
|
||||||
|
@ -17,10 +20,10 @@ ocamlPackages.buildDunePackage rec {
|
||||||
owner = "darrenldl";
|
owner = "darrenldl";
|
||||||
repo = "docfd";
|
repo = "docfd";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-pJ5LlOfC+9NRfY7ng9LAxEnjr+mtJmhRNTo9Im6Lkbo=";
|
hash = "sha256-fgwUXRZ6k5i3XLxXpjbrl0TJZMT+NkGXf7KNwRgi+q8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ python3 dune_3 ];
|
nativeBuildInputs = [ python3 dune_3 makeWrapper ];
|
||||||
buildInputs = with ocamlPackages; [
|
buildInputs = with ocamlPackages; [
|
||||||
cmdliner
|
cmdliner
|
||||||
containers-data
|
containers-data
|
||||||
|
@ -37,6 +40,10 @@ ocamlPackages.buildDunePackage rec {
|
||||||
yojson
|
yojson
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/docfd --prefix PATH : "${lib.makeBinPath [ pandoc poppler_utils ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.tests.version = testers.testVersion {
|
||||||
package = docfd;
|
package = docfd;
|
||||||
};
|
};
|
||||||
|
@ -44,14 +51,10 @@ ocamlPackages.buildDunePackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "TUI multiline fuzzy document finder";
|
description = "TUI multiline fuzzy document finder";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Think interactive grep for both text and other document files, but
|
Think interactive grep for text and other document files.
|
||||||
word/token based instead of regex and line based, so you can search
|
Word/token based instead of regex and line based, so you
|
||||||
across lines easily. Aims to provide good UX via integration with
|
can search across lines easily. Aims to provide good UX via
|
||||||
common text editors and other file viewers.
|
integration with common text editors and other file viewers.
|
||||||
Optional dependencies:
|
|
||||||
fzf - for fuzzy file picker with "docfd ?".
|
|
||||||
poppler_utils - for pdf search.
|
|
||||||
pandoc - for .epub, .odt, .docx, .fb2, .ipynb, .html, & .htm files.
|
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/darrenldl/docfd";
|
homepage = "https://github.com/darrenldl/docfd";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user