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

This commit is contained in:
Ben Siraphob
2021-01-22 00:00:13 +07:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, gfortran, lhapdf, python2, zlib }:
{ lib, stdenv, fetchFromGitHub, gfortran, lhapdf, python2, zlib }:
stdenv.mkDerivation rec {
pname = "apfel";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "A PDF Evolution Library";
license = licenses.gpl3;
homepage = "https://apfel.mi.infn.it/";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, apfel, applgrid, lhapdf, root5 }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, apfel, applgrid, lhapdf, root5 }:
stdenv.mkDerivation rec {
pname = "apfelgrid";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Ultra-fast theory predictions for collider observables";
license = licenses.mit;
homepage = "http://nhartland.github.io/APFELgrid/";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, hoppet, lhapdf, root5, zlib }:
{ lib, stdenv, fetchurl, gfortran, hoppet, lhapdf, root5, zlib }:
stdenv.mkDerivation rec {
pname = "applgrid";
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
done
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "The APPLgrid project provides a fast and flexible way to reproduce the results of full NLO calculations with any input parton distribution set in only a few milliseconds rather than the weeks normally required to gain adequate statistics";
license = licenses.gpl3;
homepage = "http://applgrid.hepforge.org";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, gnumake, imake, makedepend, motif, xorg }:
{ lib, stdenv, fetchurl, gfortran, gnumake, imake, makedepend, motif, xorg }:
stdenv.mkDerivation rec {
version = "2006";
@@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
description = "Legacy collection of libraries and modules for data analysis in high energy physics";
broken = stdenv.isDarwin;
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
maintainers = with stdenv.lib.maintainers; [ veprbl ];
license = stdenv.lib.licenses.gpl2;
maintainers = with lib.maintainers; [ veprbl ];
license = lib.licenses.gpl2;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fastjet }:
{ lib, stdenv, fetchurl, fastjet }:
stdenv.mkDerivation rec {
pname = "fastjet-contrib";
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
make fragile-shared-install
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Third party extensions for FastJet";
homepage = "http://fastjet.fr/";
license = licenses.gpl2;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python2 }:
{ lib, stdenv, fetchurl, python2 }:
stdenv.mkDerivation rec {
pname = "fastjet";
@@ -20,9 +20,9 @@ stdenv.mkDerivation rec {
meta = {
description = "A software package for jet finding in pp and e+e collisions";
license = stdenv.lib.licenses.gpl2Plus;
license = lib.licenses.gpl2Plus;
homepage = "http://fastjet.fr/";
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ veprbl ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, fastjet, gfortran, lhapdf, python2, root, yoda, zlib }:
{ lib, stdenv, fetchurl, boost, fastjet, gfortran, lhapdf, python2, root, yoda, zlib }:
stdenv.mkDerivation rec {
pname = "fastnlo_toolkit";
@@ -25,9 +25,9 @@ stdenv.mkDerivation rec {
meta = {
description = "A computer code to create and evaluate fast interpolation tables of pre-computed coefficients in perturbation theory for observables in hadron-induced processes";
license = stdenv.lib.licenses.gpl3;
license = lib.licenses.gpl3;
homepage = "http://fastnlo.hepforge.org";
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ veprbl ];
};
}

View File

@@ -24,7 +24,7 @@ let
inherit envvar;
setupHook = ./datasets-hook.sh;
meta = with stdenv.lib; {
meta = with lib; {
description = "Data files for the Geant4 toolkit";
homepage = "https://geant4.web.cern.ch/support/download";
license = licenses.g4sl;

View File

@@ -9,7 +9,7 @@
, enableRaytracerX11 ? false
# Standard build environment with cmake.
, stdenv, fetchurl, fetchpatch, cmake
, lib, stdenv, fetchurl, fetchpatch, cmake
# Optional system packages, otherwise internal GEANT4 packages are used.
, clhep ? null # not packaged currently
@@ -80,9 +80,9 @@ stdenv.mkDerivation rec {
"-DGEANT4_USE_SYSTEM_EXPAT=${if expat != null then "ON" else "OFF"}"
"-DGEANT4_USE_SYSTEM_ZLIB=${if zlib != null then "ON" else "OFF"}"
"-DGEANT4_BUILD_MULTITHREADED=${if enableMultiThreading then "ON" else "OFF"}"
] ++ stdenv.lib.optionals (enableMultiThreading && enablePython) [
] ++ lib.optionals (enableMultiThreading && enablePython) [
"-DGEANT4_BUILD_TLS_MODEL=global-dynamic"
] ++ stdenv.lib.optionals enableInventor [
] ++ lib.optionals enableInventor [
"-DINVENTOR_INCLUDE_DIR=${coin3d}/include"
"-DINVENTOR_LIBRARY_RELEASE=${coin3d}/lib/libCoin.so"
];
@@ -90,13 +90,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ libGLU xlibsWrapper libXmu ]
++ stdenv.lib.optionals enableInventor [ libXpm coin3d soxt motif ]
++ stdenv.lib.optionals enablePython [ boost_python python3 ];
++ lib.optionals enableInventor [ libXpm coin3d soxt motif ]
++ lib.optionals enablePython [ boost_python python3 ];
propagatedBuildInputs = [ clhep expat zlib libGL ]
++ stdenv.lib.optionals enableGDML [ xercesc ]
++ stdenv.lib.optionals enableXM [ motif ]
++ stdenv.lib.optionals enableQT [ qtbase ];
++ lib.optionals enableGDML [ xercesc ]
++ lib.optionals enableXM [ motif ]
++ lib.optionals enableQT [ qtbase ];
postFixup = ''
# Don't try to export invalid environment variables.
@@ -119,7 +119,7 @@ stdenv.mkDerivation rec {
source $out/nix-support/setup-hook
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A toolkit for the simulation of the passage of particles through matter";
longDescription = ''
Geant4 is a toolkit for the simulation of the passage of particles through matter.

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake }:
{ lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
pname = "hepmc";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
"-Dlength:STRING=MM"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "The HepMC package is an object oriented event record written in C++ for High Energy Physics Monte Carlo Generators";
license = licenses.lgpl21;
homepage = "http://hepmc.web.cern.ch/hepmc/";

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, cmake, coreutils, python, root }:
{ lib, stdenv, fetchurl, cmake, coreutils, python, root }:
let
pythonVersion = with stdenv.lib.versions; "${major python.version}${minor python.version}";
pythonVersion = with lib.versions; "${major python.version}${minor python.version}";
withPython = python != null;
# ensure that root is built with the same python interpreter, as it links against numpy
root_py = if withPython then root.override { inherit python; } else root;
@@ -18,11 +18,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ root_py ]
++ stdenv.lib.optional withPython python;
++ lib.optional withPython python;
cmakeFlags = [
"-DHEPMC3_ENABLE_PYTHON=${if withPython then "ON" else "OFF"}"
] ++ stdenv.lib.optionals withPython [
] ++ lib.optionals withPython [
"-DHEPMC3_PYTHON_VERSIONS=${if python.isPy3k then "3.X" else "2.X"}"
"-DHEPMC3_Python_SITEARCH${pythonVersion}=${placeholder "out"}/${python.sitePackages}"
];
@@ -35,11 +35,11 @@ stdenv.mkDerivation rec {
doInstallCheck = withPython;
# prevent nix from trying to dereference a null python
installCheckPhase = stdenv.lib.optionalString withPython ''
installCheckPhase = lib.optionalString withPython ''
PYTHONPATH=${placeholder "out"}/${python.sitePackages} python -c 'import pyHepMC3'
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "The HepMC package is an object oriented, C++ event record for High Energy Physics Monte Carlo generators and simulation";
license = licenses.gpl3;
homepage = "http://hepmc.web.cern.ch/hepmc/";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
{ lib, stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
pname = "herwig";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "A multi-purpose particle physics event generator";
homepage = "https://herwig.hepforge.org/";
license = licenses.gpl3;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, perl }:
{ lib, stdenv, fetchurl, gfortran, perl }:
stdenv.mkDerivation rec {
pname = "hoppet";
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Higher Order Perturbative Parton Evolution Toolkit";
license = licenses.gpl2;
homepage = "https://hoppet.hepforge.org";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python2, makeWrapper }:
{ lib, stdenv, fetchurl, python2, makeWrapper }:
stdenv.mkDerivation rec {
pname = "lhapdf";
@@ -15,18 +15,18 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru = {
pdf_sets = import ./pdf_sets.nix { inherit stdenv fetchurl; };
pdf_sets = import ./pdf_sets.nix { inherit lib stdenv fetchurl; };
};
postInstall = ''
wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")"
'';
meta = {
meta = with lib; {
description = "A general purpose interpolator, used for evaluating Parton Distribution Functions from discretised data files";
license = stdenv.lib.licenses.gpl2;
license = licenses.gpl2;
homepage = "http://lhapdf.hepforge.org";
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
let
mkPdfSet = name: sha256:
@@ -20,7 +20,7 @@ let
setupHook = ./pdfset-hook.sh;
};
in
stdenv.lib.mapAttrs mkPdfSet {
lib.mapAttrs mkPdfSet {
"ABMP15_3_nnlo" = "028q5xixxjxhb8sr7l5v5mwh9mkszm5m59fgnpb69yxvv40a70v0";
"ABMP15_4_nnlo" = "11zjp4dxmgp69kdkmdwqkpsajvwjrbwylmwgs56mgjb0vgb8wk0i";
"ABMP15_5_nnlo" = "0z47g5fwh53gg5ws5bbip5q2m5mm7vl09q2w58g6ah9dk25r10ll";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, gfortran }:
{ lib, stdenv, fetchFromGitHub, gfortran }:
stdenv.mkDerivation rec {
pname = "mela";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "a Mellin Evolution LibrAry";
license = licenses.gpl3;
homepage = "https://github.com/vbertone/MELA";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "nlojet++";
@@ -15,9 +15,9 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html";
license = stdenv.lib.licenses.gpl2;
license = lib.licenses.gpl2;
description = "Implementation of calculation of the hadron jet cross sections";
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ veprbl ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
{ lib, stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
stdenv.mkDerivation rec {
pname = "pythia";
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-shared"
"--with-lhapdf6=${lhapdf}"
] ++ (if stdenv.lib.versions.major hepmc.version == "3" then [
] ++ (if lib.versions.major hepmc.version == "3" then [
"--with-hepmc3=${hepmc}"
] else [
"--with-hepmc2=${hepmc}"
@@ -28,9 +28,9 @@ stdenv.mkDerivation rec {
meta = {
description = "A program for the generation of high-energy physics events";
license = stdenv.lib.licenses.gpl2;
license = lib.licenses.gpl2;
homepage = "http://home.thep.lu.se/~torbjorn/Pythia.html";
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ veprbl ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, zlib }:
{ lib, stdenv, fetchurl, gfortran, zlib }:
stdenv.mkDerivation rec {
pname = "QCDNUM";
@@ -16,9 +16,9 @@ stdenv.mkDerivation rec {
meta = {
description = "A very fast QCD evolution program written in FORTRAN77";
license = stdenv.lib.licenses.gpl3;
license = lib.licenses.gpl3;
homepage = "https://www.nikhef.nl/~h24/qcdnum/index.html";
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ veprbl ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fastjet, fastjet-contrib, ghostscript, gsl, hepmc, imagemagick, less, python3, rsync, texlive, yoda, which, makeWrapper }:
{ lib, stdenv, fetchurl, fastjet, fastjet-contrib, ghostscript, gsl, hepmc, imagemagick, less, python3, rsync, texlive, yoda, which, makeWrapper }:
stdenv.mkDerivation rec {
pname = "rivet";
@@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--with-fastjet=${fastjet}"
"--with-yoda=${yoda}"
] ++ (if stdenv.lib.versions.major hepmc.version == "3" then [
] ++ (if lib.versions.major hepmc.version == "3" then [
"--with-hepmc3=${hepmc}"
] else [
"--with-hepmc=${hepmc}"
@@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
done
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A framework for comparison of experimental measurements from high-energy particle colliders to theory predictions";
license = licenses.gpl3;
homepage = "https://rivet.hepforge.org";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, fastjet, gsl, hepmc2, lhapdf, rivet, zlib }:
{ lib, stdenv, fetchurl, boost, fastjet, gsl, hepmc2, lhapdf, rivet, zlib }:
stdenv.mkDerivation rec {
pname = "thepeg";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Toolkit for High Energy Physics Event Generation";
homepage = "https://herwig.hepforge.org/";
license = licenses.gpl3;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, root, makeWrapper, zlib, withRootSupport ? false }:
{ lib, stdenv, fetchurl, python, root, makeWrapper, zlib, withRootSupport ? false }:
stdenv.mkDerivation rec {
pname = "yoda";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = with python.pkgs; [ cython makeWrapper ];
buildInputs = [ python ]
++ (with python.pkgs; [ numpy matplotlib ])
++ stdenv.lib.optional withRootSupport root;
++ lib.optional withRootSupport root;
propagatedBuildInputs = [ zlib ];
enableParallelBuilding = true;
@@ -35,10 +35,10 @@ stdenv.mkDerivation rec {
meta = {
description = "Provides small set of data analysis (specifically histogramming) classes";
license = stdenv.lib.licenses.gpl3;
license = lib.licenses.gpl3;
homepage = "https://yoda.hepforge.org";
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ veprbl ];
# https://gitlab.com/hepcedar/yoda/-/issues/24
broken = withRootSupport;
};