From 9980495d9c9200f6db587d10c56357cfe5528152 Mon Sep 17 00:00:00 2001 From: xfnw Date: Mon, 21 Mar 2022 21:40:26 -0400 Subject: [PATCH] justify: init at unstable-2022-03-19 --- pkgs/tools/text/justify/default.nix | 33 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/text/justify/default.nix diff --git a/pkgs/tools/text/justify/default.nix b/pkgs/tools/text/justify/default.nix new file mode 100644 index 000000000000..1e18e22db8e2 --- /dev/null +++ b/pkgs/tools/text/justify/default.nix @@ -0,0 +1,33 @@ +{ lib +, stdenv +, fetchFromGitea +, cmake +}: + +stdenv.mkDerivation rec { + pname = "justify"; + version = "unstable-2022-03-19"; + + src = fetchFromGitea { + domain = "tildegit.org"; + owner = "jns"; + repo = "justify"; + rev = "0d397c20ed921c8e091bf18e548d174e15810e62"; + sha256 = "sha256-406OhJt2Ila/LIhfqJXhbFqFxJJiRyMVI4/VK8Y43kc="; + }; + + nativeBuildInputs = [ cmake ]; + + installPhase = '' + install -D justify $out/bin/justify + ''; + + meta = with lib; { + homepage = "https://tildegit.org/jns/justify"; + description = "Simple text alignment tool that supports left/right/center/fill justify alignment"; + license = licenses.gpl3Only; + platforms = platforms.unix; + mainProgram = "justify"; + maintainers = with maintainers; [ xfnw ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 40ea0a4f8bbe..92fd758b94c1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7022,6 +7022,8 @@ with pkgs; jupyter-kernel = callPackage ../applications/editors/jupyter/kernel.nix { }; + justify = callPackage ../tools/text/justify { }; + jwhois = callPackage ../tools/networking/jwhois { }; k2pdfopt = callPackage ../applications/misc/k2pdfopt { };