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
50
pkgs/development/libraries/pcmsolver/default.nix
Normal file
50
pkgs/development/libraries/pcmsolver/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, perl, gfortran, python3
|
||||
, boost, eigen, zlib
|
||||
} :
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pcmsolver";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PCMSolver";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256= "0jrxr8z21hjy7ik999hna9rdqy221kbkl3qkb06xw7g80rc9x9yr";
|
||||
};
|
||||
|
||||
# Glibc 2.34 changed SIGSTKSZ to a dynamic value, which breaks
|
||||
# PCMsolver. Replace SIGSTKZ by the backward-compatible _SC_SIGSTKSZ.
|
||||
postPatch = ''
|
||||
substituteInPlace external/Catch/catch.hpp \
|
||||
--replace SIGSTKSZ _SC_SIGSTKSZ
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gfortran
|
||||
perl
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
eigen
|
||||
zlib
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DENABLE_OPENMP=ON" ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
# Requires files, that are not installed.
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "An API for the Polarizable Continuum Model";
|
||||
homepage = "https://pcmsolver.readthedocs.io/en/stable/";
|
||||
license = licenses.lgpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.sheepforce ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue