guix_mirror_bot pushed a commit to branch master
in repository guix.

commit f98063bf9976f78be6abfb9f0a19c7828b1aec0a
Author: Olivia Lee <[email protected]>
AuthorDate: Thu Oct 22 02:40:53 2026 -0700

    gnu: Add par.
    
    * gnu/packages/par.scm: New file.
    
    Merges: https://codeberg.org/guix/guix/pulls/12165
    Reviewed-by: bdunahu <[email protected]>
    Signed-off-by: Nguyễn Gia Phong <[email protected]>
---
 gnu/packages/pretty-print.scm | 44 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index a79e4de942a..f78bcd8b1b9 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2023 gemmaro <[email protected]>
 ;;; Copyright © 2024 chris <[email protected]>
 ;;; Copyright © 2025 Artyom V. Poptsov <[email protected]>
+;;; Copyright © 2026 Olivia Lee <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -450,3 +451,46 @@ TeX, SVG, BBCode and terminal escape sequences with 
colored syntax
 highlighting.  Language definitions and color themes are customizable.")
     (license license:gpl3+)
     (properties '((lint-hidden-cpe-vendors . ("highlight"))))))
+
+(define-public par
+  (package
+    (name "par")
+    (version "1.53.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://www.nicemice.net/par/Par-"; version
+                           ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "013qqi5f8avg0hyd2f934rnijmfsr2c9hjy579aqkdc2xchcc2f8"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:make-flags
+      #~(list "--file=protoMakefile"
+              (string-append "CC=" #$(cc-for-target) " -c")
+              (string-append "LINK1=" #$(cc-for-target)))
+      #:test-target "test"
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure)
+          (replace 'install
+            (lambda* (#:key inputs #:allow-other-keys)
+              (install-file "par"
+                            (string-append #$output "/bin"))
+              (install-file "par.1"
+                            (string-append #$output "/share/man/man1"))
+              (install-file "par.doc"
+                            (string-append #$output "/share/doc/par")))))))
+    (home-page "http://www.nicemice.net/par/";)
+    (synopsis "Paragraph reformatter, comparable to fmt")
+    (description
+     "@command{par} is a filter which copies its input to its output,
+changing all white characters (except newlines) to spaces, and
+reformatting each paragraph.")
+    ;; par is dual-licensed under either expat or a custom license
+    ;; listed in the documentation file under "Rights and
+    ;; Responsibilities".
+    (license (list license:expat
+                   (license:non-copyleft "file://par.doc")))))

Reply via email to