fasthenry: init at 3.0.1

+63
+61
pkgs/applications/science/physics/fasthenry/default.nix
···
··· 1 + { stdenv 2 + , fetchFromGitHub 3 + , lib 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "fasthenry"; 8 + # later versions are Windows only ports 9 + # nixpkgs-update: no auto update 10 + version = "3.0.1"; 11 + 12 + # we don't use the original MIT code at 13 + # https://www.rle.mit.edu/cpg/research_codes.htm 14 + # since the FastFieldSolvers S.R.L. version includes 15 + # a couple of bug fixes 16 + src = fetchFromGitHub { 17 + owner = "ediloren"; 18 + repo = "FastHenry2"; 19 + rev = "R${version}"; 20 + sha256 = "017kcri69zhyhii59kxj1ak0gyfn7jf0qp6p2x3nnljia8njdkcc"; 21 + }; 22 + 23 + dontConfigure = true; 24 + 25 + preBuild = '' 26 + makeFlagsArray=( 27 + CC="gcc" 28 + RM="rm" 29 + SHELL="sh" 30 + "all" 31 + ) 32 + '' + (if stdenv.isx86_64 then '' 33 + makeFlagsArray+=( 34 + CFLAGS="-fcommon -O -DFOUR -m64" 35 + ); 36 + '' else '' 37 + makeFlagsArray+=( 38 + CFLAGS="-fcommon -O -DFOUR" 39 + ); 40 + ''); 41 + 42 + installPhase = '' 43 + mkdir -p $out/bin 44 + cp -r bin/* $out/bin/ 45 + mkdir -p $out/share/doc/${pname}-${version} 46 + cp -r doc/* $out/share/doc/${pname}-${version} 47 + mkdir -p $out/share/${pname}-${version}/examples 48 + cp -r examples/* $out/share/${pname}-${version}/examples 49 + ''; 50 + 51 + meta = with lib; { 52 + description = "Multipole-accelerated inductance analysis program"; 53 + longDescription = '' 54 + Fasthenry is an inductance extraction program based on a 55 + multipole-accelerated algorithm.''; 56 + homepage = "https://www.fastfieldsolvers.com/fasthenry2.htm"; 57 + license = licenses.lgpl2Only; 58 + maintainers = with maintainers; [ fbeffa ]; 59 + platforms = intersectLists (platforms.linux) (platforms.x86_64 ++ platforms.x86); 60 + }; 61 + }
+2
pkgs/top-level/all-packages.nix
··· 39465 39466 elmerfem = callPackage ../applications/science/physics/elmerfem { }; 39467 39468 mcfm = callPackage ../applications/science/physics/MCFM { 39469 stdenv = gccStdenv; 39470 lhapdf = lhapdf.override { stdenv = gccStdenv; python = null; };
··· 39465 39466 elmerfem = callPackage ../applications/science/physics/elmerfem { }; 39467 39468 + fasthenry = callPackage ../applications/science/physics/fasthenry { }; 39469 + 39470 mcfm = callPackage ../applications/science/physics/MCFM { 39471 stdenv = gccStdenv; 39472 lhapdf = lhapdf.override { stdenv = gccStdenv; python = null; };