mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 19:34:06 +00:00
fasthenry: init at 3.0.1
This commit is contained in:
parent
1b72831944
commit
1ff13b86c8
61
pkgs/applications/science/physics/fasthenry/default.nix
Normal file
61
pkgs/applications/science/physics/fasthenry/default.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fasthenry";
|
||||
# later versions are Windows only ports
|
||||
# nixpkgs-update: no auto update
|
||||
version = "3.0.1";
|
||||
|
||||
# we don't use the original MIT code at
|
||||
# https://www.rle.mit.edu/cpg/research_codes.htm
|
||||
# since the FastFieldSolvers S.R.L. version includes
|
||||
# a couple of bug fixes
|
||||
src = fetchFromGitHub {
|
||||
owner = "ediloren";
|
||||
repo = "FastHenry2";
|
||||
rev = "R${version}";
|
||||
sha256 = "017kcri69zhyhii59kxj1ak0gyfn7jf0qp6p2x3nnljia8njdkcc";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(
|
||||
CC="gcc"
|
||||
RM="rm"
|
||||
SHELL="sh"
|
||||
"all"
|
||||
)
|
||||
'' + (if stdenv.isx86_64 then ''
|
||||
makeFlagsArray+=(
|
||||
CFLAGS="-fcommon -O -DFOUR -m64"
|
||||
);
|
||||
'' else ''
|
||||
makeFlagsArray+=(
|
||||
CFLAGS="-fcommon -O -DFOUR"
|
||||
);
|
||||
'');
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -r bin/* $out/bin/
|
||||
mkdir -p $out/share/doc/${pname}-${version}
|
||||
cp -r doc/* $out/share/doc/${pname}-${version}
|
||||
mkdir -p $out/share/${pname}-${version}/examples
|
||||
cp -r examples/* $out/share/${pname}-${version}/examples
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multipole-accelerated inductance analysis program";
|
||||
longDescription = ''
|
||||
Fasthenry is an inductance extraction program based on a
|
||||
multipole-accelerated algorithm.'';
|
||||
homepage = "https://www.fastfieldsolvers.com/fasthenry2.htm";
|
||||
license = licenses.lgpl2Only;
|
||||
maintainers = with maintainers; [ fbeffa ];
|
||||
platforms = intersectLists (platforms.linux) (platforms.x86_64 ++ platforms.x86);
|
||||
};
|
||||
}
|
@ -39465,6 +39465,8 @@ with pkgs;
|
||||
|
||||
elmerfem = callPackage ../applications/science/physics/elmerfem { };
|
||||
|
||||
fasthenry = callPackage ../applications/science/physics/fasthenry { };
|
||||
|
||||
mcfm = callPackage ../applications/science/physics/MCFM {
|
||||
stdenv = gccStdenv;
|
||||
lhapdf = lhapdf.override { stdenv = gccStdenv; python = null; };
|
||||
|
Loading…
Reference in New Issue
Block a user