diff options
author | jgart | 2022-01-13 06:35:30 -0500 |
---|---|---|
committer | jgart | 2022-01-13 07:11:01 -0500 |
commit | 2c1f46b298a76a4919cd79735e9e0f468b40788f (patch) | |
tree | 6ecf03dec8c4386deee4ba1342430d8c50f937f8 /gn | |
parent | 534fc2340ee2fba9c592759d28c3aaf1ca199069 (diff) | |
download | guix-bioinformatics-2c1f46b298a76a4919cd79735e9e0f468b40788f.tar.gz |
gn: quality-control: Add utf-8-lineseparator.
* gn/packages/quality-control.scm: New file.
Diffstat (limited to 'gn')
-rw-r--r-- | gn/packages/quality-control.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gn/packages/quality-control.scm b/gn/packages/quality-control.scm new file mode 100644 index 0000000..dfed55b --- /dev/null +++ b/gn/packages/quality-control.scm @@ -0,0 +1,42 @@ +(define-module (gn packages quality-control) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages)) + +(define-public utf-8-lineseparator + (package + (name "utf-8-lineseparator") + (version "cj3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pflanze/utf-8-lineseparator") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xnbcanqn5jr965gw9195ij6hz04clfm77m5776dysn9nykn20w1")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "CC=" ,(cc-for-target))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (install-file "utf-8-lineseparator" bin))))))) + (home-page "https://github.com/pflanze/utf-8-lineseparator") + (synopsis "Line ending detection library") + (description + "@code{utf-8-lineseparator} provides a tool to efficiently check text +(CSV) files for valid UTF-8 use, and to report which line endings +they use.") + (license license:expat))) + |