7 stdenv.mkDerivation rec {
9 # later versions are Windows only ports
10 # nixpkgs-update: no auto update
13 # we don't use the original MIT code at
14 # https://www.rle.mit.edu/cpg/research_codes.htm
15 # since the FastFieldSolvers S.R.L. version includes
16 # a couple of bug fixes
17 src = fetchFromGitHub {
21 sha256 = "017kcri69zhyhii59kxj1ak0gyfn7jf0qp6p2x3nnljia8njdkcc";
36 if stdenv.hostPlatform.isx86_64 then
39 CFLAGS="-fcommon -O -DFOUR -m64"
45 CFLAGS="-fcommon -O -DFOUR"
53 mkdir -p $out/share/doc/${pname}-${version}
54 cp -r doc/* $out/share/doc/${pname}-${version}
55 mkdir -p $out/share/${pname}-${version}/examples
56 cp -r examples/* $out/share/${pname}-${version}/examples
60 description = "Multipole-accelerated inductance analysis program";
62 Fasthenry is an inductance extraction program based on a
63 multipole-accelerated algorithm.'';
64 homepage = "https://www.fastfieldsolvers.com/fasthenry2.htm";
65 license = licenses.lgpl2Only;
66 maintainers = with maintainers; [ fbeffa ];
67 platforms = intersectLists (platforms.linux) (platforms.x86_64 ++ platforms.x86);