From 5a7558f2b034d8794ffde3c85e5c33b78d5a8131 Mon Sep 17 00:00:00 2001 From: Alexis Praga Date: Sat, 13 Aug 2022 15:46:59 +0000 Subject: [PATCH] biodbhts : init at 3.01 Read files using HTSlib --- pkgs/top-level/perl-packages.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 492e5baf70c5..d9d15698a6b4 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -1624,6 +1624,34 @@ let BioExtAlign = callPackage ../development/perl-modules/Bio-Ext-Align { }; + BioDBHTS = buildPerlModule { + pname = "Bio-DB-HTS"; + version = "3.01"; + src = fetchurl { + url = "mirror://cpan/authors/id/A/AV/AVULLO/Bio-DB-HTS-3.01.tar.gz"; + sha256 = "12a6bc1f579513cac8b9167cce4e363655cc8eba26b7d9fe1170dfe95e044f42"; + }; + + buildInputs = [ pkgs.htslib pkgs.zlib ]; + + propagatedBuildInputs = [ BioPerl ]; + htslibStore = toString pkgs.htslib; + + postPatch = '' + # -Wl,-rpath not recognized : replaced by -rpath= + sed -i 's/Wl,-rpath,/rpath=/' Build.PL + ''; + + preBuild = '' + export HTSLIB_DIR=${pkgs.htslib} + ''; + + meta = { + description = "Perl interface to HTS library for DNA sequencing"; + license = lib.licenses.asl20; + }; + }; + BioPerl = buildPerlPackage { pname = "BioPerl"; version = "1.7.8";