Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7d38d95e76d9
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f7a4e4a93a2a
Choose a head ref
  • 1 commit
  • 2 files changed
  • 2 contributors

Commits on Jan 9, 2020

  1. bayescan: init at 2.1 (#68191)

    Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
    bzizou and veprbl committed Jan 9, 2020
    Copy the full SHA
    f7a4e4a View commit details
Showing with 41 additions and 0 deletions.
  1. +39 −0 pkgs/applications/science/biology/bayescan/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
39 changes: 39 additions & 0 deletions pkgs/applications/science/biology/bayescan/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ stdenv, fetchurl, unzip, llvmPackages }:

stdenv.mkDerivation rec {
pname = "bayescan";
version = "2.1";

src = fetchurl {
url = "http://cmpg.unibe.ch/software/BayeScan/files/BayeScan${version}.zip";
sha256 = "0ismima8j8z0zj9yc267rpf7z90w57b2pbqzjnayhc3ab8mcbfy6";
};

nativeBuildInputs = [ unzip ];
buildInputs = stdenv.lib.optional stdenv.cc.isClang llvmPackages.openmp;

# Disable FORTIFY_SOURCE or the binary fails with "buffer overflow"
hardeningDisable = [ "fortify" ];

sourceRoot = "BayeScan${version}/source";

postPatch = ''
substituteInPlace Makefile --replace "-static" "" \
--replace "g++" "c++"
'';

installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/doc/bayescan
cp bayescan_${version} $out/bin
cp -r ../*pdf ../input_examples ../"R functions" $out/share/doc/bayescan
'';

meta = with stdenv.lib; {
description = "Detecting natural selection from population-based genetic data";
homepage = "http://cmpg.unibe.ch/software/BayeScan";
license = licenses.gpl3;
maintainers = [ maintainers.bzizou ];
platforms = stdenv.lib.platforms.all;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -23701,6 +23701,8 @@ in
stdenv = gcc49Stdenv;
};

bayescan = callPackage ../applications/science/biology/bayescan { };

bedtools = callPackage ../applications/science/biology/bedtools { };

bcftools = callPackage ../applications/science/biology/bcftools { };