summary refs log tree commit diff
path: root/pkgs/development/perl-modules
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-10-22 00:34:42 +0200
committerGitHub <noreply@github.com>2022-10-22 00:34:42 +0200
commit05c703fde0eb19f850e0f8c337cf71fd4b33ba47 (patch)
tree88123f8dfa23df1df0c93c38f98c29803f7bae77 /pkgs/development/perl-modules
parent949be351f6200a16ef82487864bd38c7a386f979 (diff)
parent02ff423121c4a3dc62edc4c51b2a48f03e95598f (diff)
downloadnixpkgs-05c703fde0eb19f850e0f8c337cf71fd4b33ba47.tar
nixpkgs-05c703fde0eb19f850e0f8c337cf71fd4b33ba47.tar.gz
nixpkgs-05c703fde0eb19f850e0f8c337cf71fd4b33ba47.tar.bz2
nixpkgs-05c703fde0eb19f850e0f8c337cf71fd4b33ba47.tar.lz
nixpkgs-05c703fde0eb19f850e0f8c337cf71fd4b33ba47.tar.xz
nixpkgs-05c703fde0eb19f850e0f8c337cf71fd4b33ba47.tar.zst
nixpkgs-05c703fde0eb19f850e0f8c337cf71fd4b33ba47.zip
Merge pull request #186464 from apraga/bioextalign-1.5.1
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r--pkgs/development/perl-modules/Bio-Ext-Align/default.nix36
-rw-r--r--pkgs/development/perl-modules/Bio-Ext-Align/fprintf.patch13
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/Bio-Ext-Align/default.nix b/pkgs/development/perl-modules/Bio-Ext-Align/default.nix
new file mode 100644
index 00000000000..237a4be0361
--- /dev/null
+++ b/pkgs/development/perl-modules/Bio-Ext-Align/default.nix
@@ -0,0 +1,36 @@
+{ lib, buildPerlPackage, fetchFromGitHub }:
+
+buildPerlPackage rec {
+  pname = "BioExtAlign";
+  version = "1.5.1";
+
+  outputs = [ "out" "dev" ];
+
+  src = fetchFromGitHub {
+    owner = "bioperl";
+    repo = "bioperl-ext";
+    rev = "bioperl-ext-release-${lib.replaceStrings ["."] ["-"] version}";
+    sha256 = "sha256-+0tZ6q3PFem8DWa2vq+njOLmjDvMB0JhD0FGk00lVMA=";
+  };
+
+  patches = [ ./fprintf.patch ];
+
+  # Do not install other Bio-ext packages
+  preConfigure = ''
+    cd Bio/Ext/Align
+  '';
+
+  # Disable tests as it requires Bio::Tools::Align which is in a different directory
+  buildPhase = ''
+    make
+  '';
+
+  meta = {
+    homepage = "https://github.com/bioperl/bioperl-ext";
+    description = "Write Perl Subroutines in Other Programming Languages";
+    longDescription = ''
+      Part of BioPerl Extensions (BioPerl-Ext) distribution, a collection of Bioperl C-compiled extensions.
+    '';
+    license = with lib.licenses; [ artistic1 ];
+  };
+}
diff --git a/pkgs/development/perl-modules/Bio-Ext-Align/fprintf.patch b/pkgs/development/perl-modules/Bio-Ext-Align/fprintf.patch
new file mode 100644
index 00000000000..f62004a9a33
--- /dev/null
+++ b/pkgs/development/perl-modules/Bio-Ext-Align/fprintf.patch
@@ -0,0 +1,13 @@
+diff --git a/libs/dpalign.c b/libs/dpalign.c
+index 0e07b67..0eab932 100644
+--- a/Bio/Ext/Align/libs/dpalign.c
++++ b/Bio/Ext/Align/libs/dpalign.c
+@@ -40,7 +40,7 @@ int blosum62[24][24] = {
+ void
+ dpAlign_fatal(char * s)
+ {
+-    fprintf(stderr, s);
++    fputs(stderr, s);
+     exit(-1);
+ }
+