aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/text
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/text')
-rw-r--r--nixpkgs/pkgs/tools/text/agrep/default.nix8
-rw-r--r--nixpkgs/pkgs/tools/text/aha/default.nix6
-rw-r--r--nixpkgs/pkgs/tools/text/amber/default.nix1
-rw-r--r--nixpkgs/pkgs/tools/text/ansifilter/default.nix6
-rw-r--r--nixpkgs/pkgs/tools/text/choose/default.nix25
-rw-r--r--nixpkgs/pkgs/tools/text/chroma/default.nix24
-rw-r--r--nixpkgs/pkgs/tools/text/cmigemo/default.nix35
-rw-r--r--nixpkgs/pkgs/tools/text/cmigemo/no-http-tool-check.patch23
-rw-r--r--nixpkgs/pkgs/tools/text/codesearch/default.nix2
-rw-r--r--nixpkgs/pkgs/tools/text/codesearch/deps.nix3
-rw-r--r--nixpkgs/pkgs/tools/text/coloursum/default.nix1
-rw-r--r--nixpkgs/pkgs/tools/text/csvkit/default.nix9
-rw-r--r--nixpkgs/pkgs/tools/text/diffr/default.nix1
-rw-r--r--nixpkgs/pkgs/tools/text/diffutils/default.nix5
-rw-r--r--nixpkgs/pkgs/tools/text/epubcheck/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/fanficfare/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/fastmod/default.nix28
-rw-r--r--nixpkgs/pkgs/tools/text/gjo/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/glogg/default.nix27
-rw-r--r--nixpkgs/pkgs/tools/text/gnugrep/default.nix7
-rw-r--r--nixpkgs/pkgs/tools/text/gtranslator/default.nix2
-rw-r--r--nixpkgs/pkgs/tools/text/highlight/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/hyx/default.nix23
-rw-r--r--nixpkgs/pkgs/tools/text/hyx/memstream.patch31
-rw-r--r--nixpkgs/pkgs/tools/text/hyx/no-wall-by-default.patch11
-rw-r--r--nixpkgs/pkgs/tools/text/kdiff3/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/languagetool/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/mdbook/default.nix7
-rw-r--r--nixpkgs/pkgs/tools/text/mdcat/default.nix16
-rw-r--r--nixpkgs/pkgs/tools/text/miller/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/ocrmypdf/0001-Make-compatible-with-pdfminer.six-version-20200720.patch52
-rw-r--r--nixpkgs/pkgs/tools/text/ocrmypdf/default.nix31
-rw-r--r--nixpkgs/pkgs/tools/text/platinum-searcher/default.nix1
-rw-r--r--nixpkgs/pkgs/tools/text/podiff/default.nix6
-rw-r--r--nixpkgs/pkgs/tools/text/poedit/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/recode/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/ripgrep-all/default.nix5
-rw-r--r--nixpkgs/pkgs/tools/text/ripgrep/default.nix3
-rw-r--r--nixpkgs/pkgs/tools/text/ruplacer/default.nix1
-rw-r--r--nixpkgs/pkgs/tools/text/sd/default.nix7
-rw-r--r--nixpkgs/pkgs/tools/text/shfmt/default.nix20
-rw-r--r--nixpkgs/pkgs/tools/text/sift/default.nix1
-rw-r--r--nixpkgs/pkgs/tools/text/smu/default.nix2
-rw-r--r--nixpkgs/pkgs/tools/text/snippetpixie/default.nix11
-rw-r--r--nixpkgs/pkgs/tools/text/tab/default.nix12
-rw-r--r--nixpkgs/pkgs/tools/text/ugrep/default.nix23
-rw-r--r--nixpkgs/pkgs/tools/text/vale/default.nix18
-rw-r--r--nixpkgs/pkgs/tools/text/vgrep/default.nix24
-rw-r--r--nixpkgs/pkgs/tools/text/wgetpaste/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/xml/html-xml-utils/default.nix4
-rw-r--r--nixpkgs/pkgs/tools/text/xsv/default.nix1
51 files changed, 426 insertions, 137 deletions
diff --git a/nixpkgs/pkgs/tools/text/agrep/default.nix b/nixpkgs/pkgs/tools/text/agrep/default.nix
index c285b892b92..c0816f8ab76 100644
--- a/nixpkgs/pkgs/tools/text/agrep/default.nix
+++ b/nixpkgs/pkgs/tools/text/agrep/default.nix
@@ -21,10 +21,12 @@ stdenv.mkDerivation {
install -Dm 444 docs/* -t "$out/doc"
'';
- meta = {
+ makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
+
+ meta = with stdenv.lib; {
description = "Approximate grep for fast fuzzy string searching";
homepage = "https://www.tgries.de/agrep/";
- license = stdenv.lib.licenses.isc;
- platforms = stdenv.lib.platforms.linux;
+ license = licenses.isc;
+ platforms = with platforms; linux ++ darwin;
};
}
diff --git a/nixpkgs/pkgs/tools/text/aha/default.nix b/nixpkgs/pkgs/tools/text/aha/default.nix
index a823f37d8d2..1a6d65c52cd 100644
--- a/nixpkgs/pkgs/tools/text/aha/default.nix
+++ b/nixpkgs/pkgs/tools/text/aha/default.nix
@@ -2,10 +2,10 @@
stdenv.mkDerivation rec {
pname = "aha";
- version = "0.5";
+ version = "0.5.1";
src = fetchFromGitHub {
- sha256 = "0byml4rmpiaalwx69jcixl3yvpvwmwiss1jzgsqwshilb2p4qnmz";
+ sha256 = "1gywad0rvvz3c5balz8cxsnx0562hj2ngzqyr8zsy2mb4pn0lpgv";
rev = version;
repo = "aha";
owner = "theZiz";
@@ -23,6 +23,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/theZiz/aha";
license = with licenses; [ lgpl2Plus mpl11 ];
maintainers = with maintainers; [ pSub ];
- platforms = platforms.linux;
+ platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/amber/default.nix b/nixpkgs/pkgs/tools/text/amber/default.nix
index 4afab278370..22a18b1cffb 100644
--- a/nixpkgs/pkgs/tools/text/amber/default.nix
+++ b/nixpkgs/pkgs/tools/text/amber/default.nix
@@ -22,6 +22,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/dalance/amber";
license = with licenses; [ mit ];
maintainers = [ maintainers.bdesham ];
- platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/ansifilter/default.nix b/nixpkgs/pkgs/tools/text/ansifilter/default.nix
index 8ebb5cfd059..00c8c075ed6 100644
--- a/nixpkgs/pkgs/tools/text/ansifilter/default.nix
+++ b/nixpkgs/pkgs/tools/text/ansifilter/default.nix
@@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost lua ];
+ postPatch = ''
+ substituteInPlace src/makefile --replace "CC=g++" "CC=c++"
+ '';
+
makeFlags = [
"PREFIX=${placeholder "out"}"
"conf_dir=/etc/ansifilter"
@@ -26,6 +30,6 @@ stdenv.mkDerivation rec {
homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php";
license = licenses.gpl3;
maintainers = [ maintainers.Adjective-Object ];
- platforms = platforms.linux;
+ platforms = platforms.linux ++ platforms.darwin;
};
}
diff --git a/nixpkgs/pkgs/tools/text/choose/default.nix b/nixpkgs/pkgs/tools/text/choose/default.nix
new file mode 100644
index 00000000000..26192732511
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/choose/default.nix
@@ -0,0 +1,25 @@
+{ stdenv
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "choose";
+ version = "1.3.1";
+
+ src = fetchFromGitHub {
+ owner = "theryangeary";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0j3861pxqw0lnamb201c7h5w7npzyiwwb6c1xzxjv72m2ccvz76j";
+ };
+
+ cargoSha256 = "1p18926pfff1yayb2i28v0nz37j52hqqv7244yfrzgidi29kyvbc";
+
+ meta = with stdenv.lib; {
+ description = "A human-friendly and fast alternative to cut and (sometimes) awk";
+ homepage = "https://github.com/theryangeary/choose";
+ license = licenses.gpl3;
+ maintainers = with maintainers; [ sohalt ];
+ };
+}
diff --git a/nixpkgs/pkgs/tools/text/chroma/default.nix b/nixpkgs/pkgs/tools/text/chroma/default.nix
new file mode 100644
index 00000000000..ae4e26e2ca4
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/chroma/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+ pname = "chroma";
+ version = "0.8.0";
+
+ src = fetchFromGitHub {
+ owner = "alecthomas";
+ repo = "chroma";
+ rev = "v${version}";
+ sha256 = "066a6rdmf670d3v5sc7chbn7db09ldgxjympb03pcqwk644dixb1";
+ };
+
+ vendorSha256 = "16cnc4scgkx8jan81ymha2q1kidm6hzsnip5mmgbxpqcc2h7hv9m";
+
+ subPackages = [ "cmd/chroma" ];
+
+ meta = with lib; {
+ homepage = "https://github.com/alecthomas/chroma";
+ description = "A general purpose syntax highlighter in pure Go";
+ license = licenses.mit;
+ maintainers = [ maintainers.sternenseemann ];
+ };
+}
diff --git a/nixpkgs/pkgs/tools/text/cmigemo/default.nix b/nixpkgs/pkgs/tools/text/cmigemo/default.nix
new file mode 100644
index 00000000000..c84299c6843
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/cmigemo/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchFromGitHub, fetchurl, gzip, libiconv, nkf, perl, skk-dicts, which }:
+
+stdenv.mkDerivation {
+ pname = "cmigemo";
+ version = "1.3e";
+
+ src = fetchFromGitHub {
+ owner = "koron";
+ repo = "cmigemo";
+ rev = "5c014a885972c77e67d0d17d367d05017c5873f7";
+ sha256 = "0xrblwhaf70m0knkd5584iahaq84rlk0926bhdsrzmakpw77hils";
+ };
+
+ nativeBuildInputs = [ gzip libiconv nkf perl which ];
+
+ postUnpack = ''
+ cp ${skk-dicts}/share/SKK-JISYO.L source/dict/
+ '';
+
+ patches = [ ./no-http-tool-check.patch ];
+
+ makeFlags = [ "INSTALL=install" ];
+
+ buildPhase = if stdenv.isDarwin then "make osx-all" else "make gcc-all";
+
+ installTargets = [ (if stdenv.isDarwin then "osx-install" else "gcc-install") ];
+
+ meta = with stdenv.lib; {
+ description = "A tool that supports Japanese incremental search with Romaji";
+ homepage = "https://www.kaoriya.net/software/cmigemo";
+ license = licenses.mit;
+ maintainers = [ maintainers.cohei ];
+ platforms = platforms.all;
+ };
+}
diff --git a/nixpkgs/pkgs/tools/text/cmigemo/no-http-tool-check.patch b/nixpkgs/pkgs/tools/text/cmigemo/no-http-tool-check.patch
new file mode 100644
index 00000000000..518bfa0e617
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/cmigemo/no-http-tool-check.patch
@@ -0,0 +1,23 @@
+diff --git a/configure b/configure
+index 4480261..2fb9b34 100755
+--- a/configure
++++ b/configure
+@@ -28,18 +28,6 @@ do
+ esac
+ done
+
+-# Check HTTP access tool
+-if CHECK_COMMAND curl ; then
+- PROGRAM_HTTP="curl -O"
+-elif CHECK_COMMAND wget ; then
+- PROGRAM_HTTP="wget"
+-elif CHECK_COMMAND fetch ; then
+- PROGRAM_HTTP="fetch"
+-else
+- echo "ERROR: Require one of HTTP access tools (curl, wget or fetch)."
+- exit 1
+-fi
+-
+ # Check encoding filter
+ if CHECK_COMMAND qkc ; then
+ PROGRAM_ENCODEFILTER="qkc -q -u"
diff --git a/nixpkgs/pkgs/tools/text/codesearch/default.nix b/nixpkgs/pkgs/tools/text/codesearch/default.nix
index 7f706cf1376..37336e63efe 100644
--- a/nixpkgs/pkgs/tools/text/codesearch/default.nix
+++ b/nixpkgs/pkgs/tools/text/codesearch/default.nix
@@ -14,8 +14,6 @@ buildGoPackage rec {
sha256 = "12bv3yz0l3bmsxbasfgv7scm9j719ch6pmlspv4bd4ix7wjpyhny";
};
- goDeps = ./deps.nix;
-
meta = {
description = "Fast, indexed regexp search over large file trees";
homepage = "https://github.com/google/codesearch";
diff --git a/nixpkgs/pkgs/tools/text/codesearch/deps.nix b/nixpkgs/pkgs/tools/text/codesearch/deps.nix
deleted file mode 100644
index 2d1dad70634..00000000000
--- a/nixpkgs/pkgs/tools/text/codesearch/deps.nix
+++ /dev/null
@@ -1,3 +0,0 @@
-# This file was generated by go2nix.
-[
-]
diff --git a/nixpkgs/pkgs/tools/text/coloursum/default.nix b/nixpkgs/pkgs/tools/text/coloursum/default.nix
index f38ada46c11..38f544496d5 100644
--- a/nixpkgs/pkgs/tools/text/coloursum/default.nix
+++ b/nixpkgs/pkgs/tools/text/coloursum/default.nix
@@ -19,7 +19,6 @@ rustPlatform.buildRustPackage rec {
description = "Colourise your checksum output";
homepage = "https://github.com/ticky/coloursum";
license = licenses.mit;
- platforms = platforms.all;
maintainers = with maintainers; [ fgaz ];
};
}
diff --git a/nixpkgs/pkgs/tools/text/csvkit/default.nix b/nixpkgs/pkgs/tools/text/csvkit/default.nix
index 7a0240fc730..95ef4f22b77 100644
--- a/nixpkgs/pkgs/tools/text/csvkit/default.nix
+++ b/nixpkgs/pkgs/tools/text/csvkit/default.nix
@@ -12,7 +12,14 @@ python3.pkgs.buildPythonApplication rec {
propagatedBuildInputs = with python3.pkgs; [
agate
agate-excel
- agate-dbf
+ # dbf test fail with agate-dbf-0.2.2
+ (agate-dbf.overridePythonAttrs(old: rec {
+ version = "0.2.1";
+ src = python3.pkgs.fetchPypi {
+ inherit (old) pname;
+ inherit version;
+ sha256 = "0brprva3vjypb5r9lk6zy10jazp681rxsqxzhz2lr869ir4krj80";
+ };}))
# sql test fail with agate-sql-0.5.4
(agate-sql.overridePythonAttrs(old: rec {
version = "0.5.3";
diff --git a/nixpkgs/pkgs/tools/text/diffr/default.nix b/nixpkgs/pkgs/tools/text/diffr/default.nix
index 016cc40977b..4fa7814ad00 100644
--- a/nixpkgs/pkgs/tools/text/diffr/default.nix
+++ b/nixpkgs/pkgs/tools/text/diffr/default.nix
@@ -24,6 +24,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/mookid/diffr";
license = with licenses; [ mit ];
maintainers = with maintainers; [ davidtwco ];
- platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/diffutils/default.nix b/nixpkgs/pkgs/tools/text/diffutils/default.nix
index 06ecda9ff21..6fd69a9ba4c 100644
--- a/nixpkgs/pkgs/tools/text/diffutils/default.nix
+++ b/nixpkgs/pkgs/tools/text/diffutils/default.nix
@@ -1,5 +1,10 @@
{ stdenv, fetchurl, xz, coreutils ? null }:
+# Note: this package is used for bootstrapping fetchurl, and thus
+# cannot use fetchpatch! All mutable patches (generated by GitHub or
+# cgit) that are needed here should be included directly in Nixpkgs as
+# files.
+
stdenv.mkDerivation rec {
name = "diffutils-3.7";
diff --git a/nixpkgs/pkgs/tools/text/epubcheck/default.nix b/nixpkgs/pkgs/tools/text/epubcheck/default.nix
index 914fe006735..b40769e5522 100644
--- a/nixpkgs/pkgs/tools/text/epubcheck/default.nix
+++ b/nixpkgs/pkgs/tools/text/epubcheck/default.nix
@@ -3,11 +3,11 @@
stdenv.mkDerivation rec {
pname = "epubcheck";
- version = "4.2.2";
+ version = "4.2.4";
src = fetchzip {
url = "https://github.com/w3c/epubcheck/releases/download/v${version}/epubcheck-${version}.zip";
- sha256 = "0vz7k6i6y60ml20pbw2p9iqy6kxw4ziqszg6hbgz102x1jk8788d";
+ sha256 = "02iy62b9wa5shxggflx99kv2q9xkilcsq94s0gbfq4m2aqjgzfwx";
};
nativeBuildInputs = [ makeWrapper ];
diff --git a/nixpkgs/pkgs/tools/text/fanficfare/default.nix b/nixpkgs/pkgs/tools/text/fanficfare/default.nix
index 6fc27bdf00c..1dbe4514363 100644
--- a/nixpkgs/pkgs/tools/text/fanficfare/default.nix
+++ b/nixpkgs/pkgs/tools/text/fanficfare/default.nix
@@ -2,11 +2,11 @@
python3Packages.buildPythonApplication rec {
pname = "FanFicFare";
- version = "3.19.0";
+ version = "3.21.0";
src = python3Packages.fetchPypi {
inherit pname version;
- sha256 = "01cr4941sg6is6k6sajlbr6hs5s47aq9xhp7gadhq4h3x6dilj40";
+ sha256 = "16hklfbww6ibmjr32gg98nlnzl4dwanz6lm3fzg2x3vd7d54m92c";
};
propagatedBuildInputs = with python3Packages; [
diff --git a/nixpkgs/pkgs/tools/text/fastmod/default.nix b/nixpkgs/pkgs/tools/text/fastmod/default.nix
new file mode 100644
index 00000000000..d15683894a2
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/fastmod/default.nix
@@ -0,0 +1,28 @@
+{ stdenv
+, fetchFromGitHub
+, rustPlatform
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "fastmod";
+ version = "0.4.0";
+
+ src = fetchFromGitHub {
+ owner = "facebookincubator";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0089a17h0wgan3fs6x1la35lzjs1pib7p81wqkh3zcwvx8ffa8z8";
+ };
+
+ cargoSha256 = "02nkxjwfiljndmi0pv98chfsw9vmjzgmp5r14mchpayp4943qk9m";
+
+ buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
+
+ meta = with stdenv.lib; {
+ description = "A utility that makes sweeping changes to large, shared code bases";
+ homepage = "https://github.com/facebookincubator/fastmod";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ jduan ];
+ };
+}
diff --git a/nixpkgs/pkgs/tools/text/gjo/default.nix b/nixpkgs/pkgs/tools/text/gjo/default.nix
index 74a5c87a760..28af709c30e 100644
--- a/nixpkgs/pkgs/tools/text/gjo/default.nix
+++ b/nixpkgs/pkgs/tools/text/gjo/default.nix
@@ -14,8 +14,6 @@ buildGoModule rec {
sha256 = "07halr0jzds4rya6hlvp45bjf7vg4yf49w5q60mch05hk8qkjjdw";
};
- doCheck = true;
-
vendorSha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
meta = with stdenv.lib; {
@@ -24,4 +22,4 @@ buildGoModule rec {
license = licenses.mit;
maintainers = with maintainers; [ doronbehar ];
};
-} \ No newline at end of file
+}
diff --git a/nixpkgs/pkgs/tools/text/glogg/default.nix b/nixpkgs/pkgs/tools/text/glogg/default.nix
index 90c1419ef30..dff7262bed2 100644
--- a/nixpkgs/pkgs/tools/text/glogg/default.nix
+++ b/nixpkgs/pkgs/tools/text/glogg/default.nix
@@ -1,21 +1,34 @@
-{ mkDerivation, stdenv, fetchurl, qmake, boost }:
+{ mkDerivation, stdenv, fetchFromGitHub, qmake, boost }:
mkDerivation rec {
-
pname = "glogg";
version = "1.1.4";
- src = fetchurl {
- url = "https://glogg.bonnefon.org/files/${pname}-${version}.tar.gz";
- sha256 = "0nwnfk9bcz2k7rf08w2cb6qipzdhwmxznik44jxmn9gwxdrdq78c";
+ src = fetchFromGitHub {
+ owner = "nickbnf";
+ repo = "glogg";
+ rev = "v${version}";
+ sha256 = "0hf1c2m8n88frmxmyn0ndr8129p7iky49nq565sw1asaydm5z6pb";
};
+ postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
+ substituteInPlace glogg.pro \
+ --replace "boost_program_options-mt" "boost_program_options"
+ '';
+
nativeBuildInputs = [ qmake ];
buildInputs = [ boost ];
- qmakeFlags = [ "glogg.pro" ];
+ qmakeFlags = [ "VERSION=${version}" ];
enableParallelBuilding = true;
+ postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
+ mkdir -p $out/Applications
+ mv $out/bin/glogg.app $out/Applications/glogg.app
+ rm -fr $out/{bin,share}
+ wrapQtApp $out/Applications/glogg.app/Contents/MacOS/glogg
+ '';
+
meta = with stdenv.lib; {
description = "The fast, smart log explorer";
longDescription = ''
@@ -23,7 +36,7 @@ mkDerivation rec {
'';
homepage = "https://glogg.bonnefon.org/";
license = licenses.gpl3Plus;
- platforms = platforms.linux;
+ platforms = platforms.unix;
maintainers = with maintainers; [ c0bw3b ];
};
}
diff --git a/nixpkgs/pkgs/tools/text/gnugrep/default.nix b/nixpkgs/pkgs/tools/text/gnugrep/default.nix
index 3f5c4d7d86c..f7e3cd42a9b 100644
--- a/nixpkgs/pkgs/tools/text/gnugrep/default.nix
+++ b/nixpkgs/pkgs/tools/text/gnugrep/default.nix
@@ -1,5 +1,10 @@
{ stdenv, fetchurl, pcre, libiconv, perl }:
+# Note: this package is used for bootstrapping fetchurl, and thus
+# cannot use fetchpatch! All mutable patches (generated by GitHub or
+# cgit) that are needed here should be included directly in Nixpkgs as
+# files.
+
let version = "3.4"; in
stdenv.mkDerivation {
@@ -19,7 +24,7 @@ stdenv.mkDerivation {
# cygwin: FAIL: multibyte-white-space
# freebsd: FAIL mb-non-UTF8-performance
- # all platforms: timing sensitivity in long-pattern-perf
+ # all platforms: timing sensitivity in long-pattern-perf
#doCheck = !stdenv.isDarwin && !stdenv.isSunOS && !stdenv.isCygwin && !stdenv.isFreeBSD;
doCheck = false;
diff --git a/nixpkgs/pkgs/tools/text/gtranslator/default.nix b/nixpkgs/pkgs/tools/text/gtranslator/default.nix
index ff5288f1631..5f217e69ea5 100644
--- a/nixpkgs/pkgs/tools/text/gtranslator/default.nix
+++ b/nixpkgs/pkgs/tools/text/gtranslator/default.nix
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
- sha256 = "LaodO1m0o171TfCHNFsD4XA+clCB+drFQ1OSKKcVrdM=";
+ sha256 = "1lxd2nkji4jk8g2xmyc1a1r3ww710ddk91zh9psmx8xlb4xivaid";
};
nativeBuildInputs = [
diff --git a/nixpkgs/pkgs/tools/text/highlight/default.nix b/nixpkgs/pkgs/tools/text/highlight/default.nix
index bc32a60c672..a918770aa7b 100644
--- a/nixpkgs/pkgs/tools/text/highlight/default.nix
+++ b/nixpkgs/pkgs/tools/text/highlight/default.nix
@@ -5,13 +5,13 @@ with stdenv.lib;
let
self = stdenv.mkDerivation rec {
pname = "highlight";
- version = "3.56";
+ version = "3.57";
src = fetchFromGitLab {
owner = "saalen";
repo = "highlight";
rev = "v${version}";
- sha256 = "1pilx58dg96zm0yx7i6k92vibwpvpj8ir39f2akrsyjgijnv3sx4";
+ sha256 = "1xrk7c7akjiwh3wh9bll0qh4g0kqvbzjz9ancpadnk0k7bqi0kxf";
};
enableParallelBuilding = true;
diff --git a/nixpkgs/pkgs/tools/text/hyx/default.nix b/nixpkgs/pkgs/tools/text/hyx/default.nix
index 83fdabb8f46..c2b055be7df 100644
--- a/nixpkgs/pkgs/tools/text/hyx/default.nix
+++ b/nixpkgs/pkgs/tools/text/hyx/default.nix
@@ -1,14 +1,25 @@
{ lib, stdenv, fetchurl }:
-
+let
+ # memstream — POSIX memory streams for BSD
+ memstream = fetchurl {
+ url = "https://piumarta.com/software/memstream/memstream-0.1.tar.gz";
+ sha256 = "0kvdb897g7nyviaz72arbqijk2g2wa61cmi3l5yh48rzr49r3a3a";
+ };
+in
stdenv.mkDerivation rec {
- name = "hyx-0.1.5";
+ pname = "hyx";
+ version = "2020-06-09";
src = fetchurl {
- url = "https://yx7.cc/code/hyx/${name}.tar.xz";
- sha256 = "0gd8fbdyw12jwffa5dgcql4ry22xbdhqdds1qwzk1rkcrkgnc1mg";
+ url = "https://yx7.cc/code/hyx/hyx-${lib.replaceStrings [ "-" ] [ "." ] version}.tar.xz";
+ sha256 = "1x8dmll93hrnj24kn5knpwj36y6r1v2ygwynpjwrg2hwd4c1a8hi";
};
- patches = [ ./no-wall-by-default.patch ];
+ postUnpack = lib.optionalString stdenv.isDarwin ''
+ tar --strip=1 -C $sourceRoot -xf ${memstream} --wildcards "memstream-0.1/memstream.[hc]"
+ '';
+
+ patches = lib.optional stdenv.isDarwin ./memstream.patch;
installPhase = ''
install -vD hyx $out/bin/hyx
@@ -19,6 +30,6 @@ stdenv.mkDerivation rec {
homepage = "https://yx7.cc/code/";
license = licenses.mit;
maintainers = with maintainers; [ fpletz ];
- platforms = platforms.linux;
+ platforms = with platforms; linux ++ darwin;
};
}
diff --git a/nixpkgs/pkgs/tools/text/hyx/memstream.patch b/nixpkgs/pkgs/tools/text/hyx/memstream.patch
new file mode 100644
index 00000000000..a02509ced76
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/hyx/memstream.patch
@@ -0,0 +1,31 @@
+diff -Naur hyx-2020.06.09.org/Makefile hyx-2020.06.09/Makefile
+--- hyx-2020.06.09.org/Makefile 2020-06-09 15:19:50.000000000 +0300
++++ hyx-2020.06.09/Makefile 2020-07-22 11:46:40.000000000 +0300
+@@ -1,6 +1,6 @@
+
+ all: CFLAGS ?= -O2 -Wl,-s \
+- -Wl,-z,relro,-z,now -fpic -pie -D_FORTIFY_SOURCE=2 -fstack-protector-all
++ -D_FORTIFY_SOURCE=2 -fstack-protector-all
+ all: CFLAGS += -std=c99 -pedantic -Wall -Wextra -DNDEBUG
+ all: hyx
+
+@@ -13,7 +13,7 @@
+ hyx: *.h *.c
+ $(CC) \
+ $(CFLAGS) \
+- hyx.c common.c blob.c history.c view.c input.c \
++ hyx.c common.c blob.c history.c view.c input.c memstream.c \
+ -o hyx
+
+ clean:
+diff -Naur hyx-2020.06.09.org/view.c hyx-2020.06.09/view.c
+--- hyx-2020.06.09.org/view.c 2020-06-09 15:19:50.000000000 +0300
++++ hyx-2020.06.09/view.c 2020-07-22 11:49:09.000000000 +0300
+@@ -4,6 +4,7 @@
+ #include "view.h"
+ #include "input.h"
+ #include "ansi.h"
++#include "memstream.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
diff --git a/nixpkgs/pkgs/tools/text/hyx/no-wall-by-default.patch b/nixpkgs/pkgs/tools/text/hyx/no-wall-by-default.patch
deleted file mode 100644
index 48ee20eff17..00000000000
--- a/nixpkgs/pkgs/tools/text/hyx/no-wall-by-default.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- hyx-0.1.5.org/Makefile 2018-06-02 17:14:37.000000000 +0100
-+++ hyx-0.1.5/Makefile 2018-11-10 09:25:49.569961762 +0000
-@@ -1,7 +1,7 @@
-
- all: CFLAGS ?= -O2 -Wl,-s \
- -Wl,-z,relro,-z,now -fpic -pie -D_FORTIFY_SOURCE=2 -fstack-protector-all
--all: CFLAGS += -std=c99 -pedantic -Wall -Wextra -DNDEBUG
-+all: CFLAGS += -std=c99 -DNDEBUG
- all: hyx
-
- debug: CFLAGS ?= -O0 -g \
diff --git a/nixpkgs/pkgs/tools/text/kdiff3/default.nix b/nixpkgs/pkgs/tools/text/kdiff3/default.nix
index f41de9baffc..9c0526c3e63 100644
--- a/nixpkgs/pkgs/tools/text/kdiff3/default.nix
+++ b/nixpkgs/pkgs/tools/text/kdiff3/default.nix
@@ -6,11 +6,11 @@
mkDerivation rec {
pname = "kdiff3";
- version = "1.8.2";
+ version = "1.8.3";
src = fetchurl {
url = "https://download.kde.org/stable/${pname}/${pname}-${version}.tar.xz";
- sha256 = "0s5vsm1avzv88b6mf2pp20c2sz0srrj52iiqpnwi3p4ihivm8wgv";
+ sha256 = "1awb62y09kbkjhz22mdkrppd6w5aihd3l0ssvpil8c9hg8syjd9g";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
diff --git a/nixpkgs/pkgs/tools/text/languagetool/default.nix b/nixpkgs/pkgs/tools/text/languagetool/default.nix
index fccd2174a6d..0dd01d382ed 100644
--- a/nixpkgs/pkgs/tools/text/languagetool/default.nix
+++ b/nixpkgs/pkgs/tools/text/languagetool/default.nix
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "LanguageTool";
- version = "4.9.1";
+ version = "5.0";
src = fetchzip {
url = "https://www.languagetool.org/download/${pname}-${version}.zip";
- sha256 = "0hvzckb92yijzmp2vphjp1wgql3xqq0xd83v5x6pbhziq9yxc5yh";
+ sha256 = "1jyd4z62ldwhqx9r7v4b9k4pl300wr4b7ggj4f0yjf0gpwg7l9p7";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
diff --git a/nixpkgs/pkgs/tools/text/mdbook/default.nix b/nixpkgs/pkgs/tools/text/mdbook/default.nix
index 9ca92a21db1..9cfdc9c9b7e 100644
--- a/nixpkgs/pkgs/tools/text/mdbook/default.nix
+++ b/nixpkgs/pkgs/tools/text/mdbook/default.nix
@@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec {
pname = "mdbook";
- version = "0.3.7";
+ version = "0.4.2";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
rev = "v${version}";
- sha256 = "0a5i842aqa5xaii5lfrnks0ldavbhbd3bl4f2d442i1ahbin5b32";
+ sha256 = "0rkl5k7a9a0vx06jqvbgki2bwag0ar2pcbg3qi88xnjnnmphzpzj";
};
- cargoSha256 = "1qx3447y684b7y18lgk9cc37if2ld42jnmy1kak191q6rjh5ssh7";
+ cargoSha256 = "1zhlb6wnjnayq833h62nm3ndlhiz1qajw8w5ccc88b8q8m4ipd7c";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
@@ -20,6 +20,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/rust-lang-nursery/mdbook";
license = [ licenses.mpl20 ];
maintainers = [ maintainers.havvy ];
- platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/mdcat/default.nix b/nixpkgs/pkgs/tools/text/mdcat/default.nix
index 314a2acf575..277c7417ce9 100644
--- a/nixpkgs/pkgs/tools/text/mdcat/default.nix
+++ b/nixpkgs/pkgs/tools/text/mdcat/default.nix
@@ -2,30 +2,31 @@
rustPlatform.buildRustPackage rec {
pname = "mdcat";
- version = "0.18.2";
+ version = "0.21.1";
src = fetchFromGitHub {
owner = "lunaryorn";
repo = pname;
rev = "mdcat-${version}";
- sha256 = "0rbfx7951ascgd16jx0d9vcr46ca1v040dc0kfcdfisr6s9ifygw";
+ hash = "sha256-O7LlbSkxcyHQiTHYB/QBJVlShzTSzud3VJDIQ1ScvM4=";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isDarwin Security;
- cargoSha256 = "1j70l8g49qm4dbcb15ww1prasqhyf9ygprf65fg9p39jcs6j5gcv";
+ cargoSha256 = "sha256-pvhYKyFraMI4w5nq6L8qs/ONSNDTHElhZnZmD5mmAZs=";
checkInputs = [ ansi2html ];
checkPhase = ''
# Skip tests that use the network and that include files.
- cargo test -- --skip terminal::iterm2 \
- --skip magic::tests::detect_mimetype_of_svg_image \
- --skip magic::tests::detect_mimetype_of_png_image \
+ cargo test -- \
--skip magic::tests::detect_mimetype_of_larger_than_magic_param_bytes_max_length \
--skip magic::tests::detect_mimetype_of_magic_param_bytes_max_length \
+ --skip magic::tests::detect_mimetype_of_png_image \
+ --skip magic::tests::detect_mimetype_of_svg_image \
--skip resources::tests::read_url_with_http_url_fails_when_status_404 \
- --skip resources::tests::read_url_with_http_url_returns_content_when_status_200
+ --skip resources::tests::read_url_with_http_url_returns_content_when_status_200 \
+ --skip iterm2_tests_render_md_samples_images_md
'';
meta = with stdenv.lib; {
@@ -33,6 +34,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/lunaryorn/mdcat";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ davidtwco ];
- platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/miller/default.nix b/nixpkgs/pkgs/tools/text/miller/default.nix
index 3b8fbdb6429..28f2c54729b 100644
--- a/nixpkgs/pkgs/tools/text/miller/default.nix
+++ b/nixpkgs/pkgs/tools/text/miller/default.nix
@@ -3,13 +3,13 @@
stdenv.mkDerivation rec {
pname = "miller";
- version = "5.7.0";
+ version = "5.9.1";
src = fetchFromGitHub {
owner = "johnkerl";
repo = "miller";
rev = "v${version}";
- sha256 = "1lmin69rf9lp3b64ga7li4sz7mm0gqapsbk1nb29l4fqjxk16ddh";
+ sha256 = "1i9bcpfjnl2yjnfmf0ar1l62zwq01ph0yylz0dby8k2l7cvq5ci6";
};
nativeBuildInputs = [ autoreconfHook flex libtool ];
diff --git a/nixpkgs/pkgs/tools/text/ocrmypdf/0001-Make-compatible-with-pdfminer.six-version-20200720.patch b/nixpkgs/pkgs/tools/text/ocrmypdf/0001-Make-compatible-with-pdfminer.six-version-20200720.patch
new file mode 100644
index 00000000000..967bcd3948c
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/ocrmypdf/0001-Make-compatible-with-pdfminer.six-version-20200720.patch
@@ -0,0 +1,52 @@
+From 4315b58e0bffedd145cec61f96062292cd98278e Mon Sep 17 00:00:00 2001
+From: Pascal Bach <pascal.bach@nextrem.ch>
+Date: Thu, 23 Jul 2020 21:37:33 +0200
+Subject: [PATCH] Make compatible with pdfminer.six version 20200720
+
+---
+ setup.py | 2 +-
+ src/ocrmypdf/pdfinfo/layout.py | 8 ++++++--
+ 2 files changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index bd95ed9..d1f4ab1 100644
+--- a/setup.py
++++ b/setup.py
+@@ -83,7 +83,7 @@ setup(
+ 'cffi >= 1.9.1', # must be a setup and install requirement
+ 'coloredlogs >= 14.0', # strictly optional
+ 'img2pdf >= 0.3.0, < 0.4', # pure Python, so track HEAD closely
+- 'pdfminer.six >= 20191110, <= 20200517',
++ 'pdfminer.six >= 20191110, <= 20200720',
+ 'pikepdf >= 1.14.0, < 2',
+ 'Pillow >= 7.0.0',
+ 'pluggy >= 0.13.0',
+diff --git a/src/ocrmypdf/pdfinfo/layout.py b/src/ocrmypdf/pdfinfo/layout.py
+index 98bd82e..8b41e14 100644
+--- a/src/ocrmypdf/pdfinfo/layout.py
++++ b/src/ocrmypdf/pdfinfo/layout.py
+@@ -26,7 +26,11 @@ import pdfminer.pdfdevice
+ import pdfminer.pdfinterp
+ from pdfminer.converter import PDFLayoutAnalyzer
+ from pdfminer.layout import LAParams, LTChar, LTPage, LTTextBox
+-from pdfminer.pdfdocument import PDFTextExtractionNotAllowed
++try:
++ from pdfminer.pdfdocument import PDFTextExtractionNotAllowedError
++except ImportError:
++ # Fallback for pdfminer < 20200720
++ from pdfminer.pdfdocument import PDFTextExtractionNotAllowed as PDFTextExtractionNotAllowedError
+ from pdfminer.pdffont import PDFSimpleFont, PDFUnicodeNotDefined
+ from pdfminer.pdfpage import PDFPage
+ from pdfminer.utils import bbox2str, matrix2str
+@@ -239,7 +243,7 @@ def get_page_analysis(infile, pageno, pscript5_mode):
+ with Path(infile).open('rb') as f:
+ page = PDFPage.get_pages(f, pagenos=[pageno], maxpages=0)
+ interp.process_page(next(page))
+- except PDFTextExtractionNotAllowed:
++ except PDFTextExtractionNotAllowedError:
+ raise EncryptedPdfError()
+ finally:
+ if pscript5_mode:
+--
+2.27.0
+
diff --git a/nixpkgs/pkgs/tools/text/ocrmypdf/default.nix b/nixpkgs/pkgs/tools/text/ocrmypdf/default.nix
index 19690e270af..bfa22a4fd18 100644
--- a/nixpkgs/pkgs/tools/text/ocrmypdf/default.nix
+++ b/nixpkgs/pkgs/tools/text/ocrmypdf/default.nix
@@ -12,7 +12,6 @@
, unpaper
, substituteAll
}:
-
let
inherit (python3Packages) buildPythonApplication;
@@ -27,16 +26,17 @@ let
pillow
];
-in buildPythonApplication rec {
+in
+buildPythonApplication rec {
pname = "ocrmypdf";
- version = "9.8.0";
+ version = "11.0.1";
disabled = ! python3Packages.isPy3k;
src = fetchFromGitHub {
owner = "jbarlow83";
repo = "OCRmyPDF";
rev = "v${version}";
- sha256 = "1l4bwnbd3g0wmdx8yv8hi5wm2z2q67y9mwrvrc4xxmkdrb5y8jcd";
+ sha256 = "194ds9i1zd80ynzwgv7kprax0crh7bbchayawdcvg2lyr64a82xn";
};
nativeBuildInputs = with python3Packages; [
@@ -49,8 +49,10 @@ in buildPythonApplication rec {
propagatedBuildInputs = with python3Packages; [
cffi
chardet
+ coloredlogs
img2pdf
pdfminer
+ pluggy
pikepdf
pillow
reportlab
@@ -66,7 +68,7 @@ in buildPythonApplication rec {
pytestcov
pytestrunner
python-xmp-toolkit
- setuptools
+ pytestCheckHook
] ++ runtimeDeps;
patches = [
@@ -76,25 +78,6 @@ in buildPythonApplication rec {
})
];
- # The tests take potentially 20+ minutes, depending on machine
- doCheck = false;
-
- # These tests fail and it might be upstream problem... or packaging. :)
- # development is happening on macos and the pinned test versions are
- # significantly newer than nixpkgs has. Program still works...
- # (to the extent I've used it) -- Kiwi
- checkPhase = ''
- export HOME=$TMPDIR
- pytest -k 'not test_force_ocr_on_pdf_with_no_images \
- and not test_tesseract_crash \
- and not test_tesseract_crash_autorotate \
- and not test_ghostscript_pdfa_failure \
- and not test_gs_render_failure \
- and not test_gs_raster_failure \
- and not test_bad_utf8 \
- and not test_old_unpaper'
- '';
-
makeWrapperArgs = [ "--prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript jbig2enc pngquant qpdf tesseract4 unpaper ]}" ];
meta = with stdenv.lib; {
diff --git a/nixpkgs/pkgs/tools/text/platinum-searcher/default.nix b/nixpkgs/pkgs/tools/text/platinum-searcher/default.nix
index 53aa9ac7b76..b53c5646e70 100644
--- a/nixpkgs/pkgs/tools/text/platinum-searcher/default.nix
+++ b/nixpkgs/pkgs/tools/text/platinum-searcher/default.nix
@@ -19,7 +19,6 @@ buildGoPackage rec {
meta = with stdenv.lib; {
homepage = "https://github.com/monochromegane/the_platinum_searcher";
description = "A code search tool similar to ack and the_silver_searcher(ag).";
- platforms = platforms.all;
license = licenses.mit;
};
}
diff --git a/nixpkgs/pkgs/tools/text/podiff/default.nix b/nixpkgs/pkgs/tools/text/podiff/default.nix
index bee2c7a1a8f..b76dfd2256a 100644
--- a/nixpkgs/pkgs/tools/text/podiff/default.nix
+++ b/nixpkgs/pkgs/tools/text/podiff/default.nix
@@ -2,11 +2,11 @@
stdenv.mkDerivation {
pname = "podiff";
- version = "1.1";
+ version = "1.2";
src = fetchurl {
- url = "ftp://download.gnu.org.ua/pub/release/podiff/podiff-1.1.tar.gz";
- sha256 = "1zz6bcmka5zvk2rq775qv122lqh54aijkxlghvx7z0r6kh880x59";
+ url = "ftp://download.gnu.org.ua/pub/release/podiff/podiff-1.2.tar.gz";
+ sha256 = "1l2b4hh53xlx28riigwarzkhxpv1pcz059xj1ka33ccvxc6c20k9";
};
patchPhase = ''
diff --git a/nixpkgs/pkgs/tools/text/poedit/default.nix b/nixpkgs/pkgs/tools/text/poedit/default.nix
index ccd99a272b5..05241033c6a 100644
--- a/nixpkgs/pkgs/tools/text/poedit/default.nix
+++ b/nixpkgs/pkgs/tools/text/poedit/default.nix
@@ -4,11 +4,11 @@
stdenv.mkDerivation rec {
pname = "poedit";
- version = "2.3.1";
+ version = "2.4.1";
src = fetchurl {
url = "https://github.com/vslavik/poedit/archive/v${version}-oss.tar.gz";
- sha256 = "04f9za35rwyr7mabk8f8izc0fgvc3sfx45v8dml1xmi634n174ds";
+ sha256 = "0pvd903j2x3h9wh38fhlcn23d0jkjlqnfbdpbvnbhy6al1ngx72w";
};
nativeBuildInputs = [ autoconf automake asciidoc wrapGAppsHook
diff --git a/nixpkgs/pkgs/tools/text/recode/default.nix b/nixpkgs/pkgs/tools/text/recode/default.nix
index b562c92679b..b6503f88848 100644
--- a/nixpkgs/pkgs/tools/text/recode/default.nix
+++ b/nixpkgs/pkgs/tools/text/recode/default.nix
@@ -2,12 +2,12 @@
stdenv.mkDerivation rec {
pname = "recode";
- version = "3.7.6";
+ version = "3.7.7";
# Use official tarball, avoid need to bootstrap/generate build system
src = fetchurl {
url = "https://github.com/rrthomas/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
- sha256 = "0m59sd1ca0zw1aydpc3m8sw03nc885knmccqryg7byzmqs585ia6";
+ sha256 = "1yrqgw74qrdmy82lxd1cxlfclrf2fqi0qp7afjmfc6b7f0xzcih9";
};
nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
diff --git a/nixpkgs/pkgs/tools/text/ripgrep-all/default.nix b/nixpkgs/pkgs/tools/text/ripgrep-all/default.nix
index 44eacacd0e8..8da7a54ebb2 100644
--- a/nixpkgs/pkgs/tools/text/ripgrep-all/default.nix
+++ b/nixpkgs/pkgs/tools/text/ripgrep-all/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub, rustPlatform, makeWrapper, ffmpeg
+{ stdenv, lib, fetchFromGitHub, rustPlatform, makeWrapper, ffmpeg_3
, pandoc, poppler_utils, ripgrep, Security, imagemagick, tesseract
}:
@@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
wrapProgram $out/bin/rga \
- --prefix PATH ":" "${lib.makeBinPath [ ffmpeg pandoc poppler_utils ripgrep imagemagick tesseract ]}"
+ --prefix PATH ":" "${lib.makeBinPath [ ffmpeg_3 pandoc poppler_utils ripgrep imagemagick tesseract ]}"
'';
# Use upstream's example data to run a couple of queries to ensure the dependencies
@@ -58,6 +58,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/phiresky/ripgrep-all";
license = with licenses; [ agpl3Plus ];
maintainers = with maintainers; [ zaninime ma27 ];
- platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/ripgrep/default.nix b/nixpkgs/pkgs/tools/text/ripgrep/default.nix
index 65ec36e5864..9a72e023d6d 100644
--- a/nixpkgs/pkgs/tools/text/ripgrep/default.nix
+++ b/nixpkgs/pkgs/tools/text/ripgrep/default.nix
@@ -38,7 +38,6 @@ rustPlatform.buildRustPackage rec {
description = "A utility that combines the usability of The Silver Searcher with the raw speed of grep";
homepage = "https://github.com/BurntSushi/ripgrep";
license = with licenses; [ unlicense /* or */ mit ];
- maintainers = with maintainers; [ tailhook globin ma27 ];
- platforms = platforms.all;
+ maintainers = with maintainers; [ tailhook globin ma27 zowoq ];
};
}
diff --git a/nixpkgs/pkgs/tools/text/ruplacer/default.nix b/nixpkgs/pkgs/tools/text/ruplacer/default.nix
index 535a00b7b4d..7ebf739414a 100644
--- a/nixpkgs/pkgs/tools/text/ruplacer/default.nix
+++ b/nixpkgs/pkgs/tools/text/ruplacer/default.nix
@@ -20,6 +20,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/TankerHQ/ruplacer";
license = [ licenses.bsd3 ];
maintainers = with maintainers; [ filalex77 ];
- platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/sd/default.nix b/nixpkgs/pkgs/tools/text/sd/default.nix
index a540918e56d..1fa508b1ef6 100644
--- a/nixpkgs/pkgs/tools/text/sd/default.nix
+++ b/nixpkgs/pkgs/tools/text/sd/default.nix
@@ -3,16 +3,16 @@
rustPlatform.buildRustPackage rec {
pname = "sd";
- version = "0.7.5";
+ version = "0.7.6";
src = fetchFromGitHub {
owner = "chmln";
repo = pname;
rev = "v${version}";
- sha256 = "04jsni80jzhbb106283df34cdyp5p362l6m29kp30hnc6x49853q";
+ sha256 = "0c5bsqs6c55x4j640vhzlmbiylhp5agr7lx0jrwcjazfyvxihc01";
};
- cargoSha256 = "1gwb76zys7gky42clzjs5g4hhgpfvzcw63chw9mnj703c7h0cgfh";
+ cargoSha256 = "1mksmdp1wnsjd8gw1g3l16a24fk05xa9mxygc0qklr41bqf8kw8b";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
@@ -20,7 +20,6 @@ rustPlatform.buildRustPackage rec {
description = "Intuitive find & replace CLI (sed alternative)";
homepage = "https://github.com/chmln/sd";
license = licenses.mit;
- platforms = platforms.all;
maintainers = with maintainers; [ amar1729 filalex77 ];
};
}
diff --git a/nixpkgs/pkgs/tools/text/shfmt/default.nix b/nixpkgs/pkgs/tools/text/shfmt/default.nix
index ab96392a95d..ec58cbdd1a9 100644
--- a/nixpkgs/pkgs/tools/text/shfmt/default.nix
+++ b/nixpkgs/pkgs/tools/text/shfmt/default.nix
@@ -1,21 +1,30 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoModule rec {
pname = "shfmt";
- version = "3.1.1";
+ version = "3.1.2";
src = fetchFromGitHub {
owner = "mvdan";
repo = "sh";
rev = "v${version}";
- sha256 = "0zlk1jjk65jwd9cx0xarz4yg2r2h86kd5g00gcnsav6dp6rx3aw8";
+ sha256 = "03zgi0rlra3gz8cbqwmhpjxsg5048anfc6ccd2w50fjhx6farsnv";
};
vendorSha256 = "1jq2x4yxshsy4ahp7nrry8dc9cyjj46mljs447rq57sgix4ndpq8";
- subPackages = ["cmd/shfmt"];
+
+ subPackages = [ "cmd/shfmt" ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
+ patches = [
+ # fix failing test on go 1.15, remove with > 3.1.2
+ (fetchpatch {
+ url = "https://github.com/mvdan/sh/commit/88956f97dae1f268af6c030bf2ba60762ebb488a.patch";
+ sha256 = "1zg8i7kklr12zjkaxh8djd2bzkdx8klgfj271r2wivkc2x61shgv";
+ })
+ ];
+
meta = with lib; {
homepage = "https://github.com/mvdan/sh";
description = "A shell parser and formatter";
@@ -24,5 +33,6 @@ buildGoModule rec {
You can feed it standard input, any number of files or any number of directories to recurse into.
'';
license = licenses.bsd3;
+ maintainers = with maintainers; [ zowoq ];
};
-} \ No newline at end of file
+}
diff --git a/nixpkgs/pkgs/tools/text/sift/default.nix b/nixpkgs/pkgs/tools/text/sift/default.nix
index 830810a84c4..5a36de5f720 100644
--- a/nixpkgs/pkgs/tools/text/sift/default.nix
+++ b/nixpkgs/pkgs/tools/text/sift/default.nix
@@ -21,6 +21,5 @@ buildGoPackage rec {
homepage = "https://sift-tool.org";
maintainers = [ maintainers.carlsverre ];
license = licenses.gpl3;
- platforms = platforms.all;
};
}
diff --git a/nixpkgs/pkgs/tools/text/smu/default.nix b/nixpkgs/pkgs/tools/text/smu/default.nix
index 50bceb4fcb3..854e70c7622 100644
--- a/nixpkgs/pkgs/tools/text/smu/default.nix
+++ b/nixpkgs/pkgs/tools/text/smu/default.nix
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
description = "simple markup - markdown like syntax";
homepage = "https://github.com/Gottox/smu";
license = licenses.mit;
- maintainers = with maintainers; [ geistesk ];
+ maintainers = with maintainers; [ oxzi ];
};
}
diff --git a/nixpkgs/pkgs/tools/text/snippetpixie/default.nix b/nixpkgs/pkgs/tools/text/snippetpixie/default.nix
index 863e4764b69..5c6025b245e 100644
--- a/nixpkgs/pkgs/tools/text/snippetpixie/default.nix
+++ b/nixpkgs/pkgs/tools/text/snippetpixie/default.nix
@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
+, nix-update-script
, meson
, ninja
, vala
@@ -18,19 +19,18 @@
, ibus
, json-glib
, pantheon
-, libwnck3
, xorg
}:
stdenv.mkDerivation rec {
pname = "snippetpixie";
- version = "1.3.2";
+ version = "1.4.1";
src = fetchFromGitHub {
owner = "bytepixie";
repo = pname;
rev = version;
- sha256 = "0jhc47g5x34c36y4d32lcn32bpw4axxf1sydawgy4886hmkvb6kf";
+ sha256 = "1db3fbawh4qwdqby5ji4g26pksi4q253r5zvd3kv1m2ljmwrrwj0";
};
nativeBuildInputs = [
@@ -54,7 +54,6 @@ stdenv.mkDerivation rec {
dbus
ibus
json-glib
- libwnck3
xorg.libXtst
pantheon.granite
pantheon.elementary-gtk-theme
@@ -69,7 +68,7 @@ stdenv.mkDerivation rec {
'';
passthru = {
- updateScript = pantheon.updateScript {
+ updateScript = nix-update-script {
attrPath = pname;
};
};
@@ -82,6 +81,8 @@ stdenv.mkDerivation rec {
Save your often used text snippets and then expand them whenever you type their abbreviation.
For example:- "spr`" expands to "Snippet Pixie rules!"
+
+ For non-accessible applications such as browsers and Electron apps, there's a shortcut (default is Ctrl+`) for opening a search window that pastes the selected snippet.
'';
homepage = "https://www.snippetpixie.com";
license = licenses.gpl2Plus;
diff --git a/nixpkgs/pkgs/tools/text/tab/default.nix b/nixpkgs/pkgs/tools/text/tab/default.nix
index f7796c8a329..8a80c7ad10e 100644
--- a/nixpkgs/pkgs/tools/text/tab/default.nix
+++ b/nixpkgs/pkgs/tools/text/tab/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromBitbucket, python2 }:
+{ stdenv, fetchFromBitbucket, python3 }:
stdenv.mkDerivation rec {
version = "7.2";
@@ -11,9 +11,13 @@ stdenv.mkDerivation rec {
sha256 = "1bm15lw0vp901dj2vsqx6yixmn7ls3brrzh1w6zgd1ksjzlm5aax";
};
- nativeBuildInputs = [ python2 ];
+ checkInputs = [ python3 ];
- doCheck = true;
+ doCheck = !stdenv.isDarwin;
+
+ preCheck = ''
+ substituteInPlace Makefile --replace "python2 go2.py" "python go.py"
+ '';
checkTarget = "test";
@@ -31,6 +35,6 @@ stdenv.mkDerivation rec {
homepage = "https://tkatchev.bitbucket.io/tab/";
license = licenses.boost;
maintainers = with maintainers; [ mstarzyk ];
- platforms = with platforms; linux;
+ platforms = with platforms; unix;
};
}
diff --git a/nixpkgs/pkgs/tools/text/ugrep/default.nix b/nixpkgs/pkgs/tools/text/ugrep/default.nix
new file mode 100644
index 00000000000..6f44c360267
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/ugrep/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchFromGitHub, boost, bzip2, lz4, pcre2, xz, zlib }:
+
+stdenv.mkDerivation rec {
+ pname = "ugrep";
+ version = "2.5.5";
+
+ src = fetchFromGitHub {
+ owner = "Genivia";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0ba9h0m9c28rllym1djij3b97k4rj06nsgajmbxg5mpxfzplgxy2";
+ };
+
+ buildInputs = [ boost bzip2 lz4 pcre2 xz zlib ];
+
+ meta = with stdenv.lib; {
+ description = "Ultra fast grep with interactive query UI";
+ homepage = "https://github.com/Genivia/ugrep";
+ maintainers = with maintainers; [ numkem ];
+ license = licenses.bsd3;
+ platforms = platforms.all;
+ };
+}
diff --git a/nixpkgs/pkgs/tools/text/vale/default.nix b/nixpkgs/pkgs/tools/text/vale/default.nix
index 6035c2950a9..8a63d82eacb 100644
--- a/nixpkgs/pkgs/tools/text/vale/default.nix
+++ b/nixpkgs/pkgs/tools/text/vale/default.nix
@@ -1,19 +1,27 @@
-{ stdenv, buildGoPackage, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub }:
-buildGoPackage rec {
+buildGoModule rec {
pname = "vale";
- version = "2.0.0";
+ version = "2.3.4";
subPackages = [ "." ];
+ outputs = [ "out" "data" ];
src = fetchFromGitHub {
owner = "errata-ai";
repo = "vale";
rev = "v${version}";
- sha256 = "068973ayd883kzkxl60lpammf3icjz090nw07kfccvhcf24x07bh";
+ sha256 = "0vk7kk2a2891vm46lss8q2893n2zdirlicac2f3xfkrbb5lhkicd";
};
- goPackagePath = "github.com/errata-ai/vale";
+ vendorSha256 = null;
+
+ doCheck = false;
+
+ postInstall = ''
+ mkdir -p $data/share/vale
+ cp -r styles $data/share/vale
+ '';
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
diff --git a/nixpkgs/pkgs/tools/text/vgrep/default.nix b/nixpkgs/pkgs/tools/text/vgrep/default.nix
new file mode 100644
index 00000000000..12880b2e4ec
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/vgrep/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+ pname = "vgrep";
+ version = "2.4.0";
+
+ src = fetchFromGitHub {
+ owner = "vrothberg";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "109j04my2xib8m52a0337996a27nvfgzackpg20zs3nzn66dmvb7";
+ };
+
+ vendorSha256 = null;
+
+ buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
+
+ meta = with lib; {
+ description = "User-friendly pager for grep/git-grep/ripgrep";
+ homepage = "https://github.com/vrothberg/vgrep";
+ license = licenses.gpl3Only;
+ maintainers = with maintainers; [ zowoq ];
+ };
+}
diff --git a/nixpkgs/pkgs/tools/text/wgetpaste/default.nix b/nixpkgs/pkgs/tools/text/wgetpaste/default.nix
index 9180573541d..852175c4f21 100644
--- a/nixpkgs/pkgs/tools/text/wgetpaste/default.nix
+++ b/nixpkgs/pkgs/tools/text/wgetpaste/default.nix
@@ -1,12 +1,12 @@
{ stdenv, fetchurl, wget, bash }:
stdenv.mkDerivation rec {
- version = "2.29";
+ version = "2.30";
pname = "wgetpaste";
src = fetchurl {
url = "http://wgetpaste.zlin.dk/${pname}-${version}.tar.bz2";
- sha256 = "1rp0wxr3zy7y2xp3azaadfghrx7g0m138f9qg6icjxkkz4vj9r22";
+ sha256 = "14k5i6j6f34hcf9gdb9cnvfwscn0ys2dgd73ci421wj9zzqkbv73";
};
# currently zsh-autocompletion support is not installed
diff --git a/nixpkgs/pkgs/tools/text/xml/html-xml-utils/default.nix b/nixpkgs/pkgs/tools/text/xml/html-xml-utils/default.nix
index c42ecfc2441..d4bd40a1199 100644
--- a/nixpkgs/pkgs/tools/text/xml/html-xml-utils/default.nix
+++ b/nixpkgs/pkgs/tools/text/xml/html-xml-utils/default.nix
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "html-xml-utils";
- version = "7.8";
+ version = "7.9";
src = fetchurl {
url = "https://www.w3.org/Tools/HTML-XML-utils/${pname}-${version}.tar.gz";
- sha256 = "0p8df3c6mw879vdi8l63kbdqylkf1is10b067mh9kipgfy91rd4s";
+ sha256 = "0gs3xvdbzhk5k12i95p5d4fgkkaldnlv45sch7pnncb0lrpcjsnq";
};
buildInputs = [curl libiconv];
diff --git a/nixpkgs/pkgs/tools/text/xsv/default.nix b/nixpkgs/pkgs/tools/text/xsv/default.nix
index 927d0d14be6..b17dba7a127 100644
--- a/nixpkgs/pkgs/tools/text/xsv/default.nix
+++ b/nixpkgs/pkgs/tools/text/xsv/default.nix
@@ -20,6 +20,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/BurntSushi/xsv";
license = with licenses; [ unlicense /* or */ mit ];
maintainers = [ maintainers.jgertm ];
- platforms = platforms.all;
};
}