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
|
|
@ -0,0 +1,81 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, boost
|
||||
, gfortran
|
||||
, lhapdf
|
||||
, ncurses
|
||||
, perl
|
||||
, python ? null
|
||||
, swig
|
||||
, yoda
|
||||
, zlib
|
||||
, withPython ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fastnlo_toolkit";
|
||||
version = "2.5.0-2826";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fastnlo.hepforge.org/code/v25/fastnlo_toolkit-${version}.tar.gz";
|
||||
sha256 = "sha256-7aIMYCOkHC/17CHYiEfrxvtSJxTDivrS7BQ32cGiEy0=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
gfortran
|
||||
gfortran.cc.lib
|
||||
lhapdf
|
||||
yoda
|
||||
] ++ lib.optional withPython python
|
||||
++ lib.optional (withPython && python.isPy3k) ncurses;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
zlib
|
||||
] ++ lib.optional withPython swig;
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace ./fastnlotoolkit/Makefile.in \
|
||||
--replace "-fext-numeric-literals" ""
|
||||
|
||||
# disable test that fails due to strict floating-point number comparison
|
||||
echo "#!/usr/bin/env perl" > check/fnlo-tk-stattest.pl.in
|
||||
chmod +x check/fnlo-tk-stattest.pl.in
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-yoda=${yoda}"
|
||||
] ++ lib.optional withPython "--enable-pyext";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
perl
|
||||
lhapdf.pdf_sets.CT10nlo
|
||||
];
|
||||
preCheck = ''
|
||||
patchShebangs --build check
|
||||
'';
|
||||
enableParallelChecking = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://fastnlo.hepforge.org";
|
||||
description = "Fast pQCD calculations for hadron-induced processes";
|
||||
longDescription = ''
|
||||
The fastNLO project provides computer code to create and evaluate fast
|
||||
interpolation tables of pre-computed coefficients in perturbation theory
|
||||
for observables in hadron-induced processes.
|
||||
|
||||
This allows fast theory predictions of these observables for arbitrary
|
||||
parton distribution functions (of regular shape), renormalization or
|
||||
factorization scale choices, and/or values of alpha_s(Mz) as e.g. needed
|
||||
in PDF fits or in systematic studies. Very time consuming complete
|
||||
recalculations are thus avoided.
|
||||
'';
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue