uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/applications/science/biology/bayescan/default.nix
Normal file
42
pkgs/applications/science/biology/bayescan/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, 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 = 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
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Detecting natural selection from population-based genetic data";
|
||||
homepage = "http://cmpg.unibe.ch/software/BayeScan";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.bzizou ];
|
||||
mainProgram = "bayescan_${version}";
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue