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
23
pkgs/applications/science/math/calculix/calculix.patch
Normal file
23
pkgs/applications/science/math/calculix/calculix.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
diff --git a/ccx_2.19/src/Makefile b/ccx_2.19/src/Makefile
|
||||
index c503513..8a69a0c 100755
|
||||
--- a/ccx_2.19/src/Makefile
|
||||
+++ b/ccx_2.19/src/Makefile
|
||||
@@ -18,15 +18,10 @@ OCCXF = $(SCCXF:.f=.o)
|
||||
OCCXC = $(SCCXC:.c=.o)
|
||||
OCCXMAIN = $(SCCXMAIN:.c=.o)
|
||||
|
||||
-DIR=../../../SPOOLES.2.2
|
||||
+LIBS = -lpthread -lm -lc -lspooles -larpack -lblas -llapack
|
||||
|
||||
-LIBS = \
|
||||
- $(DIR)/spooles.a \
|
||||
- ../../../ARPACK/libarpack_INTEL.a \
|
||||
- -lpthread -lm -lc
|
||||
-
|
||||
-ccx_2.19: $(OCCXMAIN) ccx_2.19.a $(LIBS)
|
||||
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.19.c; $(FC) -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.19.a $(LIBS) -fopenmp
|
||||
+ccx_2.19: $(OCCXMAIN) ccx_2.19.a
|
||||
+ $(CC) $(CFLAGS) -c ccx_2.19.c; $(FC) -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.19.a $(LIBS) -fopenmp
|
||||
|
||||
ccx_2.19.a: $(OCCXF) $(OCCXC)
|
||||
ar vr $@ $?
|
||||
40
pkgs/applications/science/math/calculix/default.nix
Normal file
40
pkgs/applications/science/math/calculix/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, gfortran, arpack, spooles, blas, lapack }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "calculix";
|
||||
version = "2.19";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.dhondt.de/ccx_${version}.src.tar.bz2";
|
||||
sha256 = "01vdy9sns58hkm39z6d0r5y7gzqf5z493d18jin9krqib1l6jnn7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gfortran ];
|
||||
|
||||
buildInputs = [ arpack spooles blas lapack ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-I${spooles}/include/spooles"
|
||||
"-std=legacy"
|
||||
];
|
||||
|
||||
patches = [
|
||||
./calculix.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
cd ccx*/src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm0755 ccx_${version} $out/bin/ccx
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.calculix.de/";
|
||||
description = "Three-dimensional structural finite element program";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue