summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/angle-grinder/default.nix6
-rw-r--r--pkgs/tools/text/ansifilter/default.nix2
-rw-r--r--pkgs/tools/text/crowdin-cli/default.nix4
-rw-r--r--pkgs/tools/text/html2text/default.nix31
-rw-r--r--pkgs/tools/text/mdbook-i18n-helpers/default.nix6
-rw-r--r--pkgs/tools/text/percollate/default.nix8
-rw-r--r--pkgs/tools/text/textpieces/default.nix86
7 files changed, 23 insertions, 120 deletions
diff --git a/pkgs/tools/text/angle-grinder/default.nix b/pkgs/tools/text/angle-grinder/default.nix
index dd34316803e1..322cd12463c8 100644
--- a/pkgs/tools/text/angle-grinder/default.nix
+++ b/pkgs/tools/text/angle-grinder/default.nix
@@ -5,16 +5,16 @@
rustPlatform.buildRustPackage rec {
pname = "angle-grinder";
- version = "0.19.2";
+ version = "0.19.4";
src = fetchFromGitHub {
owner = "rcoh";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-/OYIG4s0hH/bkAPxt/x5qHopDIoMN9AJLQ8Sx8USgsM=";
+ sha256 = "sha256-1SZho04qJcNi84ZkDmxoVkLx9VJX04QINZQ6ZEoCq+c=";
};
- cargoHash = "sha256-pOW2jFQxaf2zQWL5+URvHVeCAvSI0u8iALPO5fCoqmI=";
+ cargoHash = "sha256-+l0+zaZSPOk4gJLHZ9LFFbYlZ5vkS68Jg2dWPHSkzKw=";
meta = with lib; {
description = "Slice and dice logs on the command line";
diff --git a/pkgs/tools/text/ansifilter/default.nix b/pkgs/tools/text/ansifilter/default.nix
index e2fd695d41ec..686b8c9f4171 100644
--- a/pkgs/tools/text/ansifilter/default.nix
+++ b/pkgs/tools/text/ansifilter/default.nix
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
Tool to remove ANSI or convert them to another format
(HTML, TeX, LaTeX, RTF, Pango or BBCode)
'';
- homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php";
+ homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.html";
license = licenses.gpl3;
maintainers = [ maintainers.Adjective-Object ];
platforms = platforms.linux ++ platforms.darwin;
diff --git a/pkgs/tools/text/crowdin-cli/default.nix b/pkgs/tools/text/crowdin-cli/default.nix
index 763c2e3b0fbe..b7b161427f02 100644
--- a/pkgs/tools/text/crowdin-cli/default.nix
+++ b/pkgs/tools/text/crowdin-cli/default.nix
@@ -14,11 +14,11 @@
stdenv.mkDerivation rec {
pname = "crowdin-cli";
- version = "3.19.4";
+ version = "4.0.0";
src = fetchurl {
url = "https://github.com/crowdin/${pname}/releases/download/${version}/${pname}.zip";
- hash = "sha256-SD4D9wW+Tdr3mD91SJKm5K3gktH0ywQBRh0d1TMeLDs=";
+ hash = "sha256-7KyQUnl2O/raQLcP5VsMCX3084Mn6HFfxjJmksAkWBc=";
};
nativeBuildInputs = [ installShellFiles makeWrapper unzip ];
diff --git a/pkgs/tools/text/html2text/default.nix b/pkgs/tools/text/html2text/default.nix
index 4bcf02b5c848..247ee8e814df 100644
--- a/pkgs/tools/text/html2text/default.nix
+++ b/pkgs/tools/text/html2text/default.nix
@@ -1,35 +1,24 @@
-{ lib, stdenv, fetchurl }:
+{ lib, stdenv, fetchFromGitLab, autoreconfHook, libiconv }:
stdenv.mkDerivation rec {
pname = "html2text";
- version = "1.3.2a";
+ version = "2.2.3";
- src = fetchurl {
- url = "http://www.mbayer.de/html2text/downloads/html2text-${version}.tar.gz";
- sha256 = "000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392";
+ src = fetchFromGitLab {
+ owner = "grobian";
+ repo = "html2text";
+ rev = "v${version}";
+ hash = "sha256-7Ch51nJ5BeRqs4PEIPnjCGk+Nm2ydgJQCtkcpihXun8=";
};
- preConfigure = ''
- substituteInPlace configure \
- --replace /bin/echo echo \
- --replace CXX=unknown ':'
- '' + lib.optionalString stdenv.cc.isClang ''
- substituteInPlace HTMLParser.C \
- --replace "register " ""
- '';
+ nativeBuildInputs = [ autoreconfHook ];
- # the --prefix has no effect
- installPhase = ''
- mkdir -p $out/bin $out/man/man{1,5}
- cp html2text $out/bin
- cp html2text.1.gz $out/man/man1
- cp html2textrc.5.gz $out/man/man5
- '';
+ buildInputs = lib.optional stdenv.isDarwin libiconv;
meta = {
description = "Convert HTML to plain text";
mainProgram = "html2text";
- homepage = "http://www.mbayer.de/html2text/";
+ homepage = "https://gitlab.com/grobian/html2text";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.eikek ];
diff --git a/pkgs/tools/text/mdbook-i18n-helpers/default.nix b/pkgs/tools/text/mdbook-i18n-helpers/default.nix
index e38da146b1fa..96026213f4a8 100644
--- a/pkgs/tools/text/mdbook-i18n-helpers/default.nix
+++ b/pkgs/tools/text/mdbook-i18n-helpers/default.nix
@@ -5,17 +5,17 @@
rustPlatform.buildRustPackage rec {
pname = "mdbook-i18n-helpers";
- version = "0.3.2";
+ version = "0.3.3";
src = fetchFromGitHub {
owner = "google";
repo = "mdbook-i18n-helpers";
# TODO fix once upstream uses semver for tags again
rev = "refs/tags/mdbook-i18n-helpers-${version}";
- hash = "sha256-+lXIqq8T6jUkvxzvUnvRDmJg6BnT6rNK67kTm3krR0E=";
+ hash = "sha256-5DfQCkNilRB309BXQ/DWrSMX+A64uiZ2CZxPZ0krtys=";
};
- cargoHash = "sha256-xQwag3mlcLKI2ERhp+Sug8FZ6LMxnG4P1JaZNtrzdk8=";
+ cargoHash = "sha256-BrbEW5PD7n9KDaBUjdF60nto6mcfdQ0OUDKcnRH23DA=";
meta = with lib; {
description = "Helpers for a mdbook i18n workflow based on Gettext";
diff --git a/pkgs/tools/text/percollate/default.nix b/pkgs/tools/text/percollate/default.nix
index 2a7f8eaec354..0e0581167286 100644
--- a/pkgs/tools/text/percollate/default.nix
+++ b/pkgs/tools/text/percollate/default.nix
@@ -2,21 +2,21 @@
buildNpmPackage rec {
pname = "percollate";
- version = "4.2.0";
+ version = "4.2.1";
src = fetchFromGitHub {
owner = "danburzo";
repo = pname;
rev = "v${version}";
- hash = "sha256-AmvdigxLZA3lgT48Z9EVEWOC92kWNA2ve37RMJTR0UA=";
+ hash = "sha256-vGBGw9dUOSvSqM4WN53bb2LRduLjR6fW99C0ScdMVXk=";
};
- npmDepsHash = "sha256-21Q47puHZ8/jXIlLFrro87hOYahBjov8Pbg/Z2wgt+g=";
+ npmDepsHash = "sha256-Qne4XjUmJS5e6x380CFY3Kd7/5coXHMxniMfqYIHQcQ=";
dontNpmBuild = true;
# Dev dependencies include an unnecessary Java dependency (epubchecker)
- # https://github.com/danburzo/percollate/blob/v4.2.0/package.json#L40
+ # https://github.com/danburzo/percollate/blob/v4.2.1/package.json#L40
npmInstallFlags = [ "--omit=dev" ];
nativeBuildInputs = [ makeWrapper ];
diff --git a/pkgs/tools/text/textpieces/default.nix b/pkgs/tools/text/textpieces/default.nix
deleted file mode 100644
index 90f05fc8f1dc..000000000000
--- a/pkgs/tools/text/textpieces/default.nix
+++ /dev/null
@@ -1,86 +0,0 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, fetchpatch
-, python3
-, meson
-, ninja
-, pkg-config
-, vala
-, glib
-, gtk4
-, libgee
-, libadwaita
-, libportal-gtk4
-, json-glib
-, blueprint-compiler
-, gtksourceview5
-, gobject-introspection
-, wrapGAppsHook4
-, appstream-glib
-, desktop-file-utils
-}:
-
-let
- pythonEnv = python3.withPackages (ps: with ps; [ pyyaml ]);
-in
-stdenv.mkDerivation (finalAttrs: {
- pname = "textpieces";
- version = "3.4.1";
-
- src = fetchFromGitHub {
- owner = "liferooter";
- repo = "textpieces";
- rev = "v${finalAttrs.version}";
- hash = "sha256-3ZUHzt3oXYgsnJVDf83JUDhcF+0DLgFfOMtpKI/FTcE=";
- };
-
- nativeBuildInputs = [
- meson
- ninja
- pkg-config
- pythonEnv
- vala
- blueprint-compiler
- wrapGAppsHook4
- appstream-glib
- desktop-file-utils
- gobject-introspection
- ];
-
- buildInputs = [
- glib
- gtk4
- libadwaita
- libportal-gtk4
- libgee
- json-glib
- gtksourceview5
- ];
-
- runtimeDependencies = [
- pythonEnv
- ];
-
- patches = [
- (fetchpatch {
- url = "https://github.com/liferooter/textpieces/commit/26348782b9fddc5f2ffb9497cf18ec8ce9592960.patch";
- hash = "sha256-w86PCeDhoyMPm63GCBa2Ax8KfCdlxtmGeUrmt1ZSz1k=";
- })
- ];
-
- postPatch = ''
- chmod +x build-aux/meson/postinstall.py
- patchShebangs build-aux/meson/postinstall.py
- patchShebangs scripts/
- '';
-
- meta = with lib; {
- description = "Quick text processing";
- longDescription = "A small tool for quick text transformations such as checksums, encoding, decoding and so on.";
- homepage = "https://github.com/liferooter/textpieces";
- license = licenses.gpl3Plus;
- platforms = platforms.linux;
- maintainers = with maintainers; [ zendo ];
- };
-})