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
41
pkgs/development/libraries/libxc/default.nix
Normal file
41
pkgs/development/libraries/libxc/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitLab, cmake, gfortran, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libxc";
|
||||
version = "5.2.2";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "libxc";
|
||||
repo = "libxc";
|
||||
rev = version;
|
||||
sha256 = "113sk7hxjpfbz3nrgjsc7bi6zrlwb3qq5s6h0zh37hz9bd1brq54";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ perl cmake gfortran ];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs ./
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DENABLE_FORTRAN=ON"
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
# needed for tests to link
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
|
||||
# Force compilation of higher derivatives
|
||||
"-DDISABLE_VXC=0"
|
||||
"-DDISABLE_FXC=0"
|
||||
"-DDISABLE_KXC=0"
|
||||
"-DDISABLE_LXC=0"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library of exchange-correlation functionals for density-functional theory";
|
||||
homepage = "https://www.tddft.org/programs/Libxc/";
|
||||
license = licenses.mpl20;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ markuskowa ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue