gnu: Add cd-hit-auxtools.
authorRicardo Wurmus <rekado@elephly.net>
Wed, 5 Oct 2022 12:28:24 +0000 (14:28 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Wed, 5 Oct 2022 12:28:24 +0000 (14:28 +0200)
* gnu/packages/bioinformatics.scm (cd-hit-auxtools): New variable.

gnu/packages/bioinformatics.scm

index bb1aeac..b467a8b 100644 (file)
@@ -2476,6 +2476,26 @@ databases.")
     ;; version 2 (GPLv2)."
     (license license:gpl2)))
 
+(define-public cd-hit-auxtools
+  (package
+    (inherit cd-hit)
+    (name "cd-hit-auxtools")
+    (arguments
+     (list
+      #:tests? #f                       ; there are no tests
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir (lambda _ (chdir "cd-hit-auxtools")))
+          ;; No "configure" script
+          (delete 'configure)
+          ;; There is no install target.
+          (replace 'install
+            (lambda _
+              (for-each (lambda (file)
+                          (install-file file (string-append #$output "/bin")))
+                        '("cd-hit-dup" "cd-hit-lap" "read-linker")))))))
+    (inputs '())))
+
 (define-public clipper
   (package
     (name "clipper")