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
26
pkgs/development/libraries/science/biology/EBTKS/default.nix
Normal file
26
pkgs/development/libraries/science/biology/EBTKS/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, libminc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "EBTKS";
|
||||
version = "unstable-2017-09-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BIC-MNI";
|
||||
repo = pname;
|
||||
rev = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c";
|
||||
sha256 = "1a1qw6i47fs1izx60l1ysabpmyx9j5sjnbdv8b47wi2xcc9i3hpq";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libminc ];
|
||||
|
||||
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/BIC-MNI/${pname}";
|
||||
description = "Library for working with MINC files";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.free;
|
||||
};
|
||||
}
|
||||
33
pkgs/development/libraries/science/biology/bicgl/default.nix
Normal file
33
pkgs/development/libraries/science/biology/bicgl/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, libminc, bicpl, freeglut, mesa_glu, GLUT }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bicgl";
|
||||
version = "unstable-2018-04-06";
|
||||
|
||||
owner = "BIC-MNI";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit owner;
|
||||
repo = pname;
|
||||
rev = "61a035751c9244fcca1edf94d6566fa2a709ce90";
|
||||
sha256 = "0lzirdi1mf4yl8srq7vjn746sbydz7h0wjh7wy8gycy6hq04qrg4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libminc bicpl mesa_glu ]
|
||||
++ lib.optionals stdenv.isDarwin [ GLUT ]
|
||||
++ lib.optionals stdenv.isLinux [ freeglut ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DLIBMINC_DIR=${libminc}/lib/cmake"
|
||||
"-DBICPL_DIR=${bicpl}/lib"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/${owner}/${pname}";
|
||||
description = "Brain Imaging Centre graphics library";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.free;
|
||||
};
|
||||
}
|
||||
30
pkgs/development/libraries/science/biology/bicpl/default.nix
Normal file
30
pkgs/development/libraries/science/biology/bicpl/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, libminc, netpbm }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bicpl";
|
||||
version = "unstable-2020-10-15";
|
||||
|
||||
# current master is significantly ahead of most recent release, so use Git version:
|
||||
src = fetchFromGitHub {
|
||||
owner = "BIC-MNI";
|
||||
repo = pname;
|
||||
rev = "a58af912a71a4c62014975b89ef37a8e72de3c9d";
|
||||
sha256 = "0iw0pmr8xrifbx5l8a0xidfqbm1v8hwzqrw0lcmimxlzdihyri0g";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libminc netpbm ];
|
||||
|
||||
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];
|
||||
|
||||
doCheck = false;
|
||||
# internal_volume_io.h: No such file or directory
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/BIC-MNI/bicpl";
|
||||
description = "Brain Imaging Centre programming library";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.free;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bpp-core";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchFromGitHub { owner = "BioPP";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0ma2cl677l7s0n5sffh66cy9lxp5wycm50f121g8rx85p95vkgwv";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$(pwd)/src
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/lib/cmake/bpp-core/bpp-core-targets.cmake \
|
||||
--replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
|
||||
'';
|
||||
# prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
|
||||
# of form /nix/store/.../nix/store/.../include,
|
||||
# probably due to relative vs absolute path issue
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://biopp.univ-montp2.fr/wiki/index.php/Main_Page";
|
||||
changelog = "https://github.com/BioPP/bpp-core/blob/master/ChangeLog";
|
||||
description = "C++ bioinformatics libraries and tools";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
license = licenses.cecill20;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, bpp-core, bpp-seq }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bpp-phyl";
|
||||
|
||||
inherit (bpp-core) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BioPP";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "192zks6wyk903n06c2lbsscdhkjnfwms8p7jblsmk3lvjhdipb20";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ bpp-core bpp-seq ];
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$(pwd)/src
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/lib/cmake/${pname}/${pname}-targets.cmake \
|
||||
--replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
|
||||
'';
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = bpp-core.meta // {
|
||||
changelog = "https://github.com/BioPP/bpp-phyl/blob/master/ChangeLog";
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, bpp-core, bpp-seq }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bpp-popgen";
|
||||
|
||||
inherit (bpp-core) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BioPP";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0bz0fhrq3dri6a0hvfc3zlvrns8mrzzlnicw5pyfa812gc1qwfvh";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ bpp-core bpp-seq ];
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$(pwd)/src
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/lib/cmake/${pname}/${pname}-targets.cmake \
|
||||
--replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
|
||||
'';
|
||||
# prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
|
||||
# of form /nix/store/.../nix/store/.../include,
|
||||
# probably due to relative vs absolute path issue
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = bpp-core.meta // {
|
||||
changelog = "https://github.com/BioPP/bpp-popgen/blob/master/ChangeLog";
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, bpp-core }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bpp-seq";
|
||||
|
||||
inherit (bpp-core) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BioPP";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1mc09g8jswzsa4wgrfv59jxn15ys3q8s0227p1j838wkphlwn2qk";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ bpp-core ];
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$(pwd)/src
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/lib/cmake/${pname}/${pname}-targets.cmake \
|
||||
--replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
|
||||
'';
|
||||
# prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
|
||||
# of form /nix/store/.../nix/store/.../include,
|
||||
# probably due to relative vs absolute path issue
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = bpp-core.meta // {
|
||||
changelog = "https://github.com/BioPP/bpp-seq/blob/master/ChangeLog";
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, itk, python3, Cocoa }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "elastix";
|
||||
version = "5.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SuperElastix";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1mx8kkak2d3ibfrxrh8jkmh2zkdlgl9h578wiw3617zcwaa97bxw";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "install-executables.patch"; # https://github.com/SuperElastix/elastix/issues/305
|
||||
url = "https://github.com/SuperElastix/elastix/commit/8e26cdc0d66f6030c7be085fdc424d84d4fc7546.patch";
|
||||
sha256 = "12y9wbpi9jlarnw6fk4iby97jxvx5g4daq9zqblbcmn51r134bj5";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake python3 ];
|
||||
buildInputs = [ itk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
||||
|
||||
doCheck = !stdenv.isDarwin; # usual dynamic linker issues
|
||||
|
||||
preCheck = "
|
||||
export LD_LIBRARY_PATH=$(pwd)/bin
|
||||
";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://elastix.lumc.nl";
|
||||
description = "Image registration toolkit based on ITK";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.x86_64; # libitkpng linker issues with ITK 5.1
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, expat, nifticlib, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gifticlib";
|
||||
version = "unstable-2020-07-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NIFTI-Imaging";
|
||||
repo = "gifti_clib";
|
||||
rev = "5eae81ba1e87ef3553df3b6ba585f12dc81a0030";
|
||||
sha256 = "0gcab06gm0irjnlrkpszzd4wr8z0fi7gx8f7966gywdp2jlxzw19";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DUSE_SYSTEM_NIFTI=ON" "-DDOWNLOAD_TEST_DATA=OFF" ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ expat nifticlib zlib ];
|
||||
|
||||
# without the test data, this is only a few basic tests
|
||||
doCheck = !stdenv.isDarwin;
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
ctest -LE 'NEEDS_DATA'
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.nitrc.org/projects/gifti";
|
||||
description = "Medical imaging geometry format C API";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.publicDomain;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchurl, zlib, bzip2, xz, curl, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "htslib";
|
||||
version = "1.15";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/samtools/htslib/releases/download/${version}/${pname}-${version}.tar.bz2";
|
||||
sha256 = "sha256-Gp9JkRUDoi9WgXzILqm4f7fnRntf+YnKWqYcEufVMtk=";
|
||||
};
|
||||
|
||||
# perl is only used during the check phase.
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
buildInputs = [ zlib bzip2 xz curl ];
|
||||
|
||||
configureFlags = if ! stdenv.hostPlatform.isStatic
|
||||
then [ "--enable-libcurl" ] # optional but strongly recommended
|
||||
else [ "--disable-libcurl" "--disable-plugins" ];
|
||||
|
||||
|
||||
# In the case of static builds, we need to replace the build and install phases
|
||||
buildPhase = lib.optional stdenv.hostPlatform.isStatic ''
|
||||
make AR=$AR lib-static
|
||||
make LDFLAGS=-static bgzip htsfile tabix
|
||||
'';
|
||||
|
||||
installPhase = lib.optional stdenv.hostPlatform.isStatic ''
|
||||
install -d $out/bin
|
||||
install -d $out/lib
|
||||
install -d $out/include/htslib
|
||||
install -D libhts.a $out/lib
|
||||
install -m644 htslib/*h $out/include/htslib
|
||||
install -D bgzip htsfile tabix $out/bin
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
patchShebangs test/
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A C library for reading/writing high-throughput sequencing data";
|
||||
license = licenses.mit;
|
||||
homepage = "http://www.htslib.org/";
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.mimame ];
|
||||
};
|
||||
}
|
||||
44
pkgs/development/libraries/science/biology/mirtk/default.nix
Normal file
44
pkgs/development/libraries/science/biology/mirtk/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, gtest, fetchFromGitHub, cmake, boost, eigen, python3, vtk, zlib, tbb }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.0.0";
|
||||
pname = "mirtk";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BioMedIA";
|
||||
repo = "MIRTK";
|
||||
rev = "v${version}";
|
||||
sha256 = "0i2v97m66ir5myvi5b123r7zcagwy551b73s984gk7lksl5yiqxk";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
"-DWITH_VTK=ON"
|
||||
"-DBUILD_ALL_MODULES=ON"
|
||||
"-DWITH_TBB=ON"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
ctest -E '(Polynomial|ConvolutionFunction|Downsampling|EdgeTable|InterpolateExtrapolateImage)'
|
||||
'';
|
||||
# testPolynomial - segfaults for some reason
|
||||
# testConvolutionFunction, testDownsampling - main not called correctly
|
||||
# testEdgeTable, testInterpolateExtrapolateImageFunction - setup fails
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 -t "$out/share/bash-completion/completions/mirtk" share/completion/bash/mirtk
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake gtest ];
|
||||
buildInputs = [ boost eigen python3 vtk zlib tbb ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/BioMedIA/MIRTK";
|
||||
description = "Medical image registration library and tools";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nifticlib";
|
||||
version = "3.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NIFTI-Imaging";
|
||||
repo = "nifti_clib";
|
||||
rev = "v${version}";
|
||||
sha256 = "0hamm6nvbjdjjd5md4jahzvn5559frigxaiybnjkh59ckxwb1hy4";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DDOWNLOAD_TEST_DATA=OFF" ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ zlib ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
ctest -LE 'NEEDS_DATA'
|
||||
runHook postCheck
|
||||
'';
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://nifti-imaging.github.io";
|
||||
description = "Medical imaging format C API";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.publicDomain;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, libminc
|
||||
, bicpl
|
||||
, arguments
|
||||
, pcre-cpp }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "oobicpl";
|
||||
version = "unstable-2020-08-12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BIC-MNI";
|
||||
repo = pname;
|
||||
rev = "a9409da8a5bb4925438f32aff577b6333faec28b";
|
||||
sha256 = "0b4chjhr32wbb1sash8cq1jfnr7rzdq84hif8anlrjqd3l0gw357";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ libminc bicpl arguments pcre-cpp ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DLIBMINC_DIR=${libminc}/lib/cmake"
|
||||
"-DBICPL_DIR=${bicpl}/lib"
|
||||
"-DARGUMENTS_DIR=${arguments}/lib"
|
||||
"-DOOBICPL_BUILD_SHARED_LIBS=TRUE"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/BIC-MNI/oobicpl";
|
||||
description = "Brain Imaging Centre object-oriented programming library (and tools)";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.free;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue