pkgs/development/libraries: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-21 19:11:02 -08:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
}:
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
doCheck = true;
checkTarget = "test";
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://icl.utk.edu/papi/";
description = "PAPI provides the tool designer and application engineer with a consistent interface and methodology for use of the performance counter hardware found in most major microprocessors";
license = licenses.bsdOriginal;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, libminc }:
{ lib, stdenv, fetchFromGitHub, cmake, libminc }:
stdenv.mkDerivation rec {
pname = "EBTKS";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/BIC-MNI/${pname}";
description = "Library for working with MINC files";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, libminc, bicpl, freeglut, mesa_glu }:
{ lib, stdenv, fetchFromGitHub, cmake, libminc, bicpl, freeglut, mesa_glu }:
stdenv.mkDerivation rec {
pname = "bicgl";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
"-DBICPL_DIR=${bicpl}/lib"
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/${owner}/${pname}";
description = "Brain Imaging Centre graphics library";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, libminc, netpbm }:
{ lib, stdenv, fetchFromGitHub, cmake, libminc, netpbm }:
stdenv.mkDerivation rec {
pname = "bicpl";
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
doCheck = false;
# internal_volume_io.h: No such file or directory
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/${owner}/${pname}";
description = "Brain Imaging Centre programming library";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "bpp-core";
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
doCheck = !stdenv.isDarwin;
meta = with stdenv.lib; {
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";
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, cmake, itk, python3, Cocoa }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, itk, python3, Cocoa }:
stdenv.mkDerivation rec {
pname = "elastix";
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ cmake python3 ];
buildInputs = [ itk ] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
buildInputs = [ itk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
doCheck = !stdenv.isDarwin; # usual dynamic linker issues
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
export LD_LIBRARY_PATH=$(pwd)/bin
";
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://elastix.isi.uu.nl/";
description = "Image registration toolkit based on ITK";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, expat, nifticlib, zlib }:
{ lib, stdenv, fetchFromGitHub, cmake, expat, nifticlib, zlib }:
stdenv.mkDerivation rec {
pname = "gifticlib";
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
runHook postCheck
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://www.nitrc.org/projects/gifti";
description = "Medical imaging geometry format C API";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, zlib, bzip2, lzma, curl, perl }:
{ lib, stdenv, fetchurl, zlib, bzip2, lzma, curl, perl }:
stdenv.mkDerivation rec {
pname = "htslib";
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "A C library for reading/writing high-throughput sequencing data";
license = licenses.mit;
homepage = "http://www.htslib.org/";
@@ -1,4 +1,4 @@
{ stdenv, gtest, fetchFromGitHub, cmake, boost, eigen, python, vtk, zlib, tbb }:
{ lib, stdenv, gtest, fetchFromGitHub, cmake, boost, eigen, python, vtk, zlib, tbb }:
stdenv.mkDerivation rec {
version = "2.0.0";
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake gtest ];
buildInputs = [ boost eigen python vtk zlib tbb ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/BioMedIA/MIRTK";
description = "Medical image registration library and tools";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, zlib }:
{ lib, stdenv, fetchFromGitHub, cmake, zlib }:
stdenv.mkDerivation rec {
pname = "nifticlib";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
'';
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://nifti-imaging.github.io";
description = "Medical imaging format C API";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, libminc, bicpl, arguments, pcre-cpp }:
{ lib, stdenv, fetchFromGitHub, cmake, libminc, bicpl, arguments, pcre-cpp }:
stdenv.mkDerivation rec {
pname = "oobicpl";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
"-DARGUMENTS_DIR=${arguments}/lib"
"-DOOBICPL_BUILD_SHARED_LIBS=TRUE" ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/${owner}/${pname}";
description = "Brain Imaging Centre object-oriented programming library (and tools)";
maintainers = with maintainers; [ bcdarwin ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "QuadProgpp";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/liuq/QuadProgpp";
license = licenses.mit;
description = ''
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, perl
, python3
@@ -43,7 +43,7 @@ in stdenv.mkDerivation rec {
configureFlags = [
"--enable-cblas"
"--blas-int-size=${blasIntSize}"
] ++ stdenv.lib.optionals withOpenMP [ "--enable-threading=openmp" ]
] ++ lib.optionals withOpenMP [ "--enable-threading=openmp" ]
++ [ withArchitecture ];
postPatch = ''
@@ -57,7 +57,7 @@ in stdenv.mkDerivation rec {
ln -s $out/lib/libcblas.so.3 $out/lib/libcblas.so
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "BLAS-compatible library optimized for AMD CPUs";
homepage = "https://developer.amd.com/amd-aocl/blas-library/";
license = licenses.bsd3;
@@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
ln -s $out/lib/libflame.so.${version} $out/lib/liblapacke.so.3
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "LAPACK-compatible linear algebra library optimized for AMD CPUs";
homepage = "https://developer.amd.com/amd-aocl/blas-library/";
license = licenses.bsd3;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake
{ lib, stdenv, fetchFromGitHub, cmake
, gfortran, blas, lapack, eigen }:
stdenv.mkDerivation rec {
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DINTERFACE64=${stdenv.lib.optionalString blas.isILP64 "1"}"
"-DINTERFACE64=${lib.optionalString blas.isILP64 "1"}"
];
preCheck = if stdenv.isDarwin then ''
@@ -48,8 +48,8 @@ stdenv.mkDerivation rec {
A collection of Fortran77 subroutines to solve large scale eigenvalue
problems.
'';
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.ttuegel ];
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.ttuegel ];
platforms = lib.platforms.unix;
};
}
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran }:
{ lib, stdenv, fetchurl, gfortran }:
stdenv.mkDerivation rec {
pname = "blas";
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
installPhase =
# FreeBSD's stdenv doesn't use Coreutils.
let dashD = if stdenv.isFreeBSD then "" else "-D"; in
(stdenv.lib.optionalString stdenv.isFreeBSD "mkdir -p $out/lib ;")
(lib.optionalString stdenv.isFreeBSD "mkdir -p $out/lib ;")
+ ''
install ${dashD} -m755 libblas.a "$out/lib/libblas.a"
install ${dashD} -m755 libblas.so.${version} "$out/lib/libblas.so.${version}"
@@ -55,7 +55,7 @@ Libs: -L$out/lib -lblas
EOF
'';
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
preFixup = lib.optionalString stdenv.isDarwin ''
for fn in $(find $out/lib -name "*.so*"); do
if [ -L "$fn" ]; then continue; fi
install_name_tool -id "$fn" "$fn"
@@ -64,8 +64,8 @@ EOF
meta = {
description = "Basic Linear Algebra Subprograms";
license = stdenv.lib.licenses.publicDomain;
license = lib.licenses.publicDomain;
homepage = "http://www.netlib.org/blas/";
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
};
}
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, perl
, python3
@@ -40,7 +40,7 @@ in stdenv.mkDerivation rec {
configureFlags = [
"--enable-cblas"
"--blas-int-size=${blasIntSize}"
] ++ stdenv.lib.optionals withOpenMP [ "--enable-threading=openmp" ]
] ++ lib.optionals withOpenMP [ "--enable-threading=openmp" ]
++ [ withArchitecture ];
postPatch = ''
@@ -54,7 +54,7 @@ in stdenv.mkDerivation rec {
ln -s $out/lib/libcblas.so.3 $out/lib/libcblas.so
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "BLAS-compatible linear algebra library";
homepage = "https://github.com/flame/blis";
license = licenses.bsd3;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
pkg-config
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/BRiAl/BRiAl";
description = "Legacy version of PolyBoRi maintained by sagemath developers";
license = licenses.gpl2Plus;
@@ -136,8 +136,8 @@ stdenv.mkDerivation rec {
algorithms. You can bring your creations to scale using the power of GPUs in the
cloud or to the masses on mobile with Caffe2's cross-platform libraries.
'';
platforms = with stdenv.lib.platforms; linux;
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ yuriaisaka ];
platforms = with lib.platforms; linux;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ yuriaisaka ];
};
}
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, gfortran, suitesparse, blas, lapack }:
{ lib, stdenv, fetchFromGitHub, gfortran, suitesparse, blas, lapack }:
stdenv.mkDerivation rec {
pname = "cholmod-extra";
version = "1.2.0";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/jluttine/cholmod-extra";
description = "A set of additional routines for SuiteSparse CHOLMOD Module";
license = with licenses; [ gpl2Plus ];
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, cmake
, gfortran
@@ -41,19 +41,19 @@ stdenv.mkDerivation rec {
blas
python
boost
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
] ++ lib.optionals (!stdenv.isDarwin) [
ocl-icd
opencl-headers
] ++ stdenv.lib.optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
Accelerate
CoreGraphics
CoreVideo
];
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [
propagatedBuildInputs = lib.optionals stdenv.isDarwin [
OpenCL
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/clMathLibraries/clBLAS";
description = "A software library containing BLAS functions written in OpenCL";
longDescription = ''
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
}:
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
autoreconfHook
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://users.aalto.fi/~pat/cliquer.html";
downloadPage = src.meta.homepage; # autocliquer
description = "Routines for clique searching";
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, gfortran, opencl-headers, clblas, ocl-icd, mkl, intel-ocl }:
{ lib, stdenv, fetchurl, gfortran, opencl-headers, clblas, ocl-icd, mkl, intel-ocl }:
with stdenv.lib;
with lib;
let
version = "1.3.0";
@@ -65,7 +65,7 @@ in stdenv.mkDerivation {
cp ${incfile} make.inc
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Matrix Algebra on GPU and Multicore Architectures, OpenCL port";
license = licenses.bsd3;
homepage = "http://icl.cs.utk.edu/magma/index.html";
@@ -57,7 +57,7 @@ stdenv.mkDerivation {
majorVersion = lib.versions.major version;
};
meta = with stdenv.lib; {
meta = with lib; {
description = "NVIDIA CUDA Deep Neural Network library (cuDNN)";
homepage = "https://developer.nvidia.com/cudnn";
license = licenses.unfree;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "ecos";
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
cp -r include $out/
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A lightweight conic solver for second-order cone programming";
homepage = "https://www.embotech.com/ECOS";
downloadPage = "https://github.com/embotech/ecos/releases";
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, fetchpatch
, boost
@@ -50,8 +50,8 @@ let
meta = {
description = "Distributed just-in-time shared library building";
homepage = "https://fenicsproject.org/";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.lgpl3;
platforms = lib.platforms.all;
license = lib.licenses.lgpl3;
};
};
@@ -80,8 +80,8 @@ let
meta = {
description = "Automatic generation of finite element basis functions";
homepage = "https://fenicsproject.org/";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.lgpl3;
platforms = lib.platforms.all;
license = lib.licenses.lgpl3;
};
};
@@ -102,8 +102,8 @@ let
meta = {
description = "A domain-specific language for finite element variational forms";
homepage = "https://fenicsproject.org/";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.lgpl3;
platforms = lib.platforms.all;
license = lib.licenses.lgpl3;
};
};
@@ -139,8 +139,8 @@ let
meta = {
description = "A compiler for finite element variational forms";
homepage = "https://fenicsproject.org/";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.lgpl3;
platforms = lib.platforms.all;
license = lib.licenses.lgpl3;
};
};
dolfin = stdenv.mkDerivation {
@@ -215,7 +215,7 @@ let
meta = {
description = "The FEniCS Problem Solving Environment in Python and C++";
homepage = "https://fenicsproject.org/";
license = stdenv.lib.licenses.lgpl3;
license = lib.licenses.lgpl3;
};
};
python-dolfin = pythonPackages.buildPythonPackage rec {
@@ -254,8 +254,8 @@ let
meta = {
description = "Python bindings for the DOLFIN FEM compiler";
homepage = "https://fenicsproject.org/";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.lgpl3;
platforms = lib.platforms.all;
license = lib.licenses.lgpl3;
};
};
in python-dolfin
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, gmp
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/sagemath/FlintQS";
description = "Highly optimized multi-polynomial quadratic sieve for integer factorization";
license = with licenses; [ gpl2 ];
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, blas, lapack, gfortran }:
{ lib, stdenv, fetchurl, unzip, blas, lapack, gfortran }:
assert (!blas.isILP64) && (!lapack.isILP64);
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "A software package for large-scale nonlinear optimization";
homepage = "https://projects.coin-or.org/Ipopt";
license = licenses.epl10;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, cmake
, gtest
@@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
./gtests/itpp_gtests
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "IT++ is a C++ library of mathematical, signal processing and communication classes and functions";
homepage = http://itpp.sourceforge.net/;
license = licenses.gpl3;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, fetchpatch
, pari
@@ -68,13 +68,13 @@ stdenv.mkDerivation rec {
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/lcalc-c++11.patch?h=packages/lcalc&id=3607b97df5a8c231191115b0cb5c62426b339e71";
sha256 = "1ccrl61lv2vvx8ggldq54m5d0n1iy6mym7qz0i8nj6yj0dshnpk3";
})
] ++ stdenv.lib.optional stdenv.isDarwin
] ++ lib.optional stdenv.isDarwin
(fetchpatch {
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/lcalc/patches/clang.patch";
sha256 = "0bb7656z6cp6i4p2qj745cmq0lhh52v2akl9whi760dynfdxbl18";
});
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/Makefile --replace g++ c++
'';
@@ -87,7 +87,7 @@ stdenv.mkDerivation rec {
"PARI_PREFIX=${pari}"
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://oto.math.uwaterloo.ca/~mrubinst/L_function_public/L.html";
description = "A program for calculating with L-functions";
license = with licenses; [ gpl2 ];
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
}:
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
# no tests included for now (2018-08-05), but can't hurt to activate
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/miguelmarco/libbraiding/";
description = "C++ library for computations on braid groups";
longDescription = ''
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, boehmgc
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/miguelmarco/libhomfly/";
description = "Library to compute the homfly polynomial of knots and links";
license = licenses.unlicense;
@@ -1,5 +1,5 @@
{
stdenv,
lib, stdenv,
fetchFromGitHub,
gfortran,
cmake,
@@ -7,7 +7,7 @@
shared ? true
}:
let
inherit (stdenv.lib) optional;
inherit (lib) optional;
version = "3.9.0";
in
@@ -33,7 +33,7 @@ stdenv.mkDerivation {
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
inherit version;
description = "Linear Algebra PACKage";
homepage = "http://www.netlib.org/lapack/";
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "liblbfgs-1.10";
@@ -11,7 +11,7 @@ stdenv.mkDerivation {
meta = {
description = "Library of Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS)";
homepage = "http://www.chokkan.org/software/liblbfgs/";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}
@@ -25,7 +25,7 @@ in stdenv.mkDerivation {
nativeBuildInputs =
if stdenv.isDarwin then [ fixDarwinDylibNames ]
else [ addOpenGLRunpath patchelf ]
++ stdenv.lib.optionals cudaSupport [ addOpenGLRunpath ];
++ lib.optionals cudaSupport [ addOpenGLRunpath ];
buildInputs = [
stdenv.cc.cc
@@ -57,9 +57,9 @@ in stdenv.mkDerivation {
postFixup = let
libPaths = [ stdenv.cc.cc.lib ]
++ stdenv.lib.optionals cudaSupport [ nvidia_x11 ];
rpath = stdenv.lib.makeLibraryPath libPaths;
in stdenv.lib.optionalString stdenv.isLinux ''
++ lib.optionals cudaSupport [ nvidia_x11 ];
rpath = lib.makeLibraryPath libPaths;
in lib.optionalString stdenv.isLinux ''
find $out/lib -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
echo "setting rpath for $lib..."
patchelf --set-rpath "${rpath}:$out/lib" "$lib"
@@ -67,7 +67,7 @@ in stdenv.mkDerivation {
addOpenGLRunpath "$lib"
''}
done
'' + stdenv.lib.optionalString stdenv.isDarwin ''
'' + lib.optionalString stdenv.isDarwin ''
install_name_tool -change @rpath/libshm.dylib $out/lib/libshm.dylib $out/lib/libtorch_python.dylib
install_name_tool -change @rpath/libc10.dylib $out/lib/libc10.dylib $out/lib/libtorch_python.dylib
install_name_tool -change @rpath/libiomp5.dylib $out/lib/libiomp5.dylib $out/lib/libtorch_python.dylib
@@ -110,7 +110,7 @@ in stdenv.mkDerivation {
passthru.tests.cmake = callPackage ./test { };
meta = with stdenv.lib; {
meta = with lib; {
description = "C++ API of the PyTorch machine learning framework";
homepage = "https://pytorch.org/";
license = licenses.unfree; # Includes CUDA and Intel MKL.
@@ -1,4 +1,4 @@
{stdenv, fetchurl, gmp}:
{lib, stdenv, fetchurl, gmp}:
stdenv.mkDerivation rec {
pname = "lrs";
@@ -18,9 +18,9 @@ stdenv.mkDerivation rec {
meta = {
inherit version;
description = "Implementation of the reverse search algorithm for vertex enumeration/convex hull problems";
license = stdenv.lib.licenses.gpl2 ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.gpl2 ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
homepage = "http://cgm.cs.mcgill.ca/~avis/C/lrs.html";
};
}
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromBitbucket
, autoreconfHook
}:
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
autoreconfHook
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://malb.bitbucket.io/m4ri/";
description = "Library to do fast arithmetic with dense matrices over F_2";
license = licenses.gpl2Plus;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromBitbucket
, autoreconfHook
, m4ri
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
autoreconfHook
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://malb.bitbucket.io/m4rie/";
description = "Library for matrix multiplication, reduction and inversion over GF(2^k) for 2 <= k <= 10";
longDescription = ''
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, cmake, gfortran, ninja, cudatoolkit, libpthreadstubs, lapack, blas }:
{ lib, stdenv, fetchurl, cmake, gfortran, ninja, cudatoolkit, libpthreadstubs, lapack, blas }:
with stdenv.lib;
with lib;
let version = "2.5.4";
@@ -43,7 +43,7 @@ in stdenv.mkDerivation {
> $out/lib/pkgconfig/magma.pc
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Matrix Algebra on GPU and Multicore Architectures";
license = licenses.bsd3;
homepage = "http://icl.cs.utk.edu/magma/index.html";
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, cmake }:
{ lib, stdenv, fetchurl, unzip, cmake }:
stdenv.mkDerivation {
name = "metis-5.1.0";
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
meta = {
description = "Serial graph partitioning and fill-reducing matrix ordering";
homepage = "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.all;
license = lib.licenses.asl20;
platforms = lib.platforms.all;
};
}
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, cmake
}:
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
cmake
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Graph Coarsening and Partitioning Library";
homepage = "https://github.com/ScottKolo/Mongoose";
license = licenses.gpl3;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, which, cudatoolkit, addOpenGLRunpath }:
{ lib, stdenv, fetchFromGitHub, which, cudatoolkit, addOpenGLRunpath }:
stdenv.mkDerivation rec {
name = "nccl-${version}-cuda-${cudatoolkit.majorVersion}";
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Multi-GPU and multi-node collective communication primitives for NVIDIA GPUs";
homepage = "https://developer.nvidia.com/nccl";
license = licenses.bsd3;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, perl, which
{ lib, stdenv, fetchFromGitHub, perl, which
# Most packages depending on openblas expect integer width to match
# pointer width, but some expect to use 32-bit integers always
# (for compatibility with reference BLAS).
@@ -19,7 +19,7 @@
, enableShared ? !stdenv.hostPlatform.isStatic
}:
with stdenv.lib;
with lib;
let blas64_ = blas64; in
@@ -160,7 +160,7 @@ stdenv.mkDerivation rec {
NO_BINARY_MODE = if stdenv.isx86_64
then toString (stdenv.hostPlatform != stdenv.buildPlatform)
else stdenv.hostPlatform != stdenv.buildPlatform;
} // (stdenv.lib.optionalAttrs singleThreaded {
} // (lib.optionalAttrs singleThreaded {
# As described on https://github.com/xianyi/OpenBLAS/wiki/Faq/4bded95e8dc8aadc70ce65267d1093ca7bdefc4c#multi-threaded
USE_THREAD = false;
USE_LOCKING = true; # available with openblas >= 0.3.7
@@ -188,14 +188,14 @@ EOF
ln -s $out/lib/libopenblas${shlibExt} $out/lib/libcblas${shlibExt}
ln -s $out/lib/libopenblas${shlibExt} $out/lib/liblapack${shlibExt}
ln -s $out/lib/libopenblas${shlibExt} $out/lib/liblapacke${shlibExt}
'' + stdenv.lib.optionalString stdenv.hostPlatform.isLinux ''
'' + lib.optionalString stdenv.hostPlatform.isLinux ''
ln -s $out/lib/libopenblas${shlibExt} $out/lib/libblas${shlibExt}.3
ln -s $out/lib/libopenblas${shlibExt} $out/lib/libcblas${shlibExt}.3
ln -s $out/lib/libopenblas${shlibExt} $out/lib/liblapack${shlibExt}.3
ln -s $out/lib/libopenblas${shlibExt} $out/lib/liblapacke${shlibExt}.3
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Basic Linear Algebra Subprograms";
license = licenses.bsd3;
homepage = "https://github.com/xianyi/OpenBLAS";
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "openlibm";
@@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
meta = {
description = "High quality system independent, portable, open source libm implementation";
homepage = "https://openlibm.org/";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.ttuegel ];
platforms = stdenv.lib.platforms.all;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ttuegel ];
platforms = lib.platforms.all;
};
}
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran }:
{ lib, stdenv, fetchurl, gfortran }:
stdenv.mkDerivation {
name = "openspecfun-0.5.3";
@@ -14,8 +14,8 @@ stdenv.mkDerivation {
meta = {
description = "A collection of special mathematical functions";
homepage = "https://github.com/JuliaLang/openspecfun";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.ttuegel ];
platforms = stdenv.lib.platforms.all;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ttuegel ];
platforms = lib.platforms.all;
};
}
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, abseil-cpp, gflags, which
{ lib, stdenv, fetchFromGitHub, cmake, abseil-cpp, gflags, which
, lsb-release, glog, protobuf, cbc, zlib
, ensureNewerSourcesForZipFilesHook, python, swig }:
@@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "python" ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/google/or-tools";
license = licenses.asl20;
description = ''
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
passthru = { inherit withGurobi withCplex; };
meta = with stdenv.lib; {
meta = with lib; {
description = "An abstract base class to a generic linear programming (LP) solver";
homepage = "https://github.com/coin-or/Osi";
license = licenses.epl10;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, cmake
}:
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A quadratic programming solver using operator splitting";
homepage = "https://osqp.org";
license = licenses.asl20;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, cmake
, mpi
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
make config metis_path=$PWD/metis gklib_path=$PWD/metis/GKlib prefix=$out
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "An MPI-based parallel library that implements a variety of algorithms for partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of sparse matrices";
homepage = "http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview";
platforms = platforms.all;
@@ -1,4 +1,4 @@
{ stdenv , darwin , fetchurl , blas , gfortran , lapack , python }:
{ lib, stdenv , darwin , fetchurl , blas , gfortran , lapack , python }:
stdenv.mkDerivation rec {
pname = "petsc";
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
prePatch = ''
substituteInPlace configure \
--replace /bin/sh /usr/bin/python
'' + stdenv.lib.optionalString stdenv.isDarwin ''
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace config/install.py \
--replace /usr/bin/install_name_tool ${darwin.cctools}/bin/install_name_tool
'';
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
)
'';
meta = with stdenv.lib; {
meta = with lib; {
description = ''
Library of linear algebra algorithms for solving partial differential
equations
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
})
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/graph-algorithms/edge-addition-planarity-suite";
description = "A library for implementing graph algorithms";
license = licenses.bsd3;
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake }:
{ lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
pname = "primesieve";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "0g60br3p8di92jx3pr2bb51xh15gg57l7qvwzwn7xf7l585hgi7v";
};
meta = with stdenv.lib; {
meta = with lib; {
description = "Fast C/C++ prime number generator";
homepage = "https://primesieve.org/";
license = licenses.bsd2;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
}:
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
# check phase is empty for now (as of version 0.7)
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Calculates rank-width and rank-decompositions";
license = with licenses; [ gpl2Plus ];
maintainers = teams.sage.members;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, fetchpatch
, coreutils
@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
})
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://wiki.sagemath.org/spkg/rubiks";
description = "Several programs for working with Rubik's cubes";
# The individual websites are no longer available
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, openssh
{ lib, stdenv, fetchFromGitHub, cmake, openssh
, gfortran, mpi, blas, lapack
} :
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/lib
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.netlib.org/scalapack/";
description = "Library of high-performance linear algebra routines for parallel distributed memory machines";
license = licenses.bsd3;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, blas, lapack, gfortran, fixDarwinDylibNames }:
{ lib, stdenv, fetchFromGitHub, blas, lapack, gfortran, fixDarwinDylibNames }:
assert (!blas.isILP64) && (!lapack.isILP64);
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
--replace "gcc" "cc"
'';
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
nativeBuildInputs = lib.optional stdenv.isDarwin fixDarwinDylibNames;
buildInputs = [ blas lapack gfortran.cc.lib ];
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Splitting Conic Solver";
longDescription = ''
Numerical optimization package for solving large-scale convex cone problems
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, perl }:
{ lib, stdenv, fetchurl, gfortran, perl }:
stdenv.mkDerivation rec {
pname = "spooles";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
./spooles.patch
];
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isDarwin ''
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace makefile --replace '-Wl,-soname' '-Wl,-install_name'
'';
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ perl ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.netlib.org/linalg/spooles/";
description = "Library for solving sparse real and complex linear systems of equations";
license = licenses.publicDomain;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, cmake
, gnum4
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
gnum4
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Graph algorithms in the language of linear algebra";
homepage = "http://faculty.cse.tamu.edu/davis/GraphBLAS.html";
license = licenses.asl20;
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, blas, lapack }:
{ lib, stdenv, fetchurl, gfortran, blas, lapack }:
let
int_t = if blas.isILP64 then "int64_t" else "int32_t";
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
"LAPACK=-llapack"
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://faculty.cse.tamu.edu/davis/suitesparse.html";
description = "A suite of sparse matrix algorithms";
license = with licenses; [ bsd2 gpl2Plus lgpl21Plus ];
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, blas, lapack
{ lib, stdenv, fetchurl, gfortran, blas, lapack
, enableCuda ? false, cudatoolkit
}:
@@ -27,11 +27,11 @@ stdenv.mkDerivation {
-e '/CHOLMOD_CONFIG/ s/$/-DNPARTITION -DLONGBLAS=${int_t}/' \
-e '/UMFPACK_CONFIG/ s/$/-DLONGBLAS=${int_t}/'
''
+ stdenv.lib.optionalString stdenv.isDarwin ''
+ lib.optionalString stdenv.isDarwin ''
sed -i "SuiteSparse_config/SuiteSparse_config.mk" \
-e 's/^[[:space:]]*\(LIB = -lm\) -lrt/\1/'
''
+ stdenv.lib.optionalString enableCuda ''
+ lib.optionalString enableCuda ''
sed -i "SuiteSparse_config/SuiteSparse_config.mk" \
-e 's|^[[:space:]]*\(CUDA_ROOT =\)|CUDA_ROOT = ${cudatoolkit}|' \
-e 's|^[[:space:]]*\(GPU_BLAS_PATH =\)|GPU_BLAS_PATH = $(CUDA_ROOT)|' \
@@ -55,7 +55,7 @@ stdenv.mkDerivation {
"LAPACK=-llapack"
];
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin " -DNTIMER";
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin " -DNTIMER";
postInstall = ''
# Build and install shared library
@@ -64,7 +64,7 @@ stdenv.mkDerivation {
for i in "$out"/lib/lib*.a; do
ar -x $i
done
${if enableCuda then cudatoolkit else stdenv.cc.outPath}/bin/${if enableCuda then "nvcc" else "cc"} *.o ${if stdenv.isDarwin then "-dynamiclib" else "--shared"} -o "$out/lib/libsuitesparse${SHLIB_EXT}" -lblas ${stdenv.lib.optionalString enableCuda "-lcublas"}
${if enableCuda then cudatoolkit else stdenv.cc.outPath}/bin/${if enableCuda then "nvcc" else "cc"} *.o ${if stdenv.isDarwin then "-dynamiclib" else "--shared"} -o "$out/lib/libsuitesparse${SHLIB_EXT}" -lblas ${lib.optionalString enableCuda "-lcublas"}
)
for i in umfpack cholmod amd camd colamd spqr; do
ln -s libsuitesparse${SHLIB_EXT} "$out"/lib/lib$i${SHLIB_EXT}
@@ -90,7 +90,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ gfortran ];
buildInputs = [ blas lapack ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://faculty.cse.tamu.edu/davis/suitesparse.html";
description = "A suite of sparse matrix algorithms";
license = with licenses; [ bsd2 gpl2Plus lgpl21Plus ];
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, gfortran
, blas, lapack
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
] ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
# Use compatible indexing for lapack and blas used
buildInputs = assert (blas.isILP64 == lapack.isILP64); [
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
gfortran.cc.lib
gmp
mpfr
] ++ stdenv.lib.optional enableCuda cudatoolkit;
] ++ lib.optional enableCuda cudatoolkit;
preConfigure = ''
# Mongoose and GraphBLAS are packaged separately
@@ -45,13 +45,13 @@ stdenv.mkDerivation rec {
"INSTALL_INCLUDE=${placeholder "dev"}/include"
"JOBS=$(NIX_BUILD_CORES)"
"MY_METIS_LIB=-lmetis"
] ++ stdenv.lib.optionals blas.isILP64 [
] ++ lib.optionals blas.isILP64 [
"CFLAGS=-DBLAS64"
] ++ stdenv.lib.optionals enableCuda [
] ++ lib.optionals enableCuda [
"CUDA_PATH=${cudatoolkit}"
"CUDART_LIB=${cudatoolkit.lib}/lib/libcudart.so"
"CUBLAS_LIB=${cudatoolkit}/lib/libcublas.so"
] ++ stdenv.lib.optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
# Unless these are set, the build will attempt to use `Accelerate` on darwin, see:
# https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/v5.8.1/SuiteSparse_config/SuiteSparse_config.mk#L368
"BLAS=-lblas"
@@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
"library"
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://faculty.cse.tamu.edu/davis/suitesparse.html";
description = "A suite of sparse matrix algorithms";
license = with licenses; [ bsd2 gpl2Plus lgpl21Plus ];
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake,
{ lib, stdenv, fetchurl, cmake,
gfortran, blas, lapack}:
assert (!blas.isILP64) && (!lapack.isILP64);
@@ -32,6 +32,6 @@ stdenv.mkDerivation rec {
homepage = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/";
license = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt";
description = "A library for the solution of large, sparse, nonsymmetric systems of linear equations";
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
};
}
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitLab
, makeWrapper
, which
@@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
"$out/bin/sympow" -sp 2p16 -curve "[1,2,3,4,5]" | grep '8.3705'
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Compute special values of symmetric power elliptic curve L-functions";
license = {
shortName = "sympow";
@@ -1,10 +1,10 @@
{ stdenv
{ lib, stdenv
, fetchurl
, addOpenGLRunpath
, cudaSupport ? false, symlinkJoin, cudatoolkit, cudnn, nvidia_x11
}:
with stdenv.lib;
with lib;
let
broken = !stdenv.isLinux && !stdenv.isDarwin;
@@ -33,8 +33,8 @@
let
pythonEnv = python.withPackages(ps:
stdenv.lib.optional withManual ps.sphinx
++ stdenv.lib.optionals pythonSupport (with ps;[ pybindgen pygccxml ])
lib.optional withManual ps.sphinx
++ lib.optionals pythonSupport (with ps;[ pybindgen pygccxml ])
);
in
stdenv.mkDerivation rec {
@@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
patchShebangs doc/ns3_html_theme/get_version.sh
'';
wafConfigureFlags = with stdenv.lib; [
wafConfigureFlags = with lib; [
"--enable-modules=${concatStringsSep "," modules}"
"--with-python=${pythonEnv.interpreter}"
]
@@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
# to prevent fatal error: 'backward_warning.h' file not found
CXXFLAGS = "-D_GLIBCXX_PERMIT_BACKWARD_HASH";
postBuild = with stdenv.lib; let flags = concatStringsSep ";" (
postBuild = with lib; let flags = concatStringsSep ";" (
optional enableDoxygen "./waf doxygen"
++ optional withManual "./waf sphinx"
);
@@ -109,7 +109,7 @@ stdenv.mkDerivation rec {
# strictoverflow prevents clang from discovering pyembed when bindings
hardeningDisable = [ "fortify" "strictoverflow"];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.nsnam.org";
license = licenses.gpl3;
description = "A discrete time event network simulator";
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, boost }:
{ lib, stdenv, fetchurl, cmake, boost }:
stdenv.mkDerivation rec {
pname = "ispike";
@@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Spiking neural interface between iCub and a spiking neural simulator";
homepage = "https://sourceforge.net/projects/ispike/";
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.nico202 ];
license = lib.licenses.lgpl3;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.nico202 ];
};
}