Skip to content

Commit

Permalink
meep: init 1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepforce committed Jun 9, 2021
1 parent c97145a commit 9a064bc
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ let

mctdh = callPackage ./pkgs/apps/mctdh { };

meep = callPackage ./pkgs/apps/meep { };

mesa-qc = callPackage ./pkgs/apps/mesa {
gfortran = final.gfortran6;
};
Expand Down
53 changes: 53 additions & 0 deletions pkgs/apps/meep/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, gfortran, blas, lapack, fftw, hdf5-full
, pkg-config, mpi, python3, harminv, libctl, libGDSII
} :

stdenv.mkDerivation rec {
pname = "meep";
version = "1.18.0";

src = fetchFromGitHub {
owner = "NanoComp";
repo = pname;
rev = "v${version}";
sha256= "08l4mczkh08dp90c4dlnyx6lsg093li0xqnnbh7q8k363cr8lx81";
};

nativeBuildInputs = [
autoreconfHook
gfortran
pkg-config
];

buildInputs = [
blas
lapack
fftw
hdf5-full
harminv
libctl
libGDSII
];

propagatedBuildInputs = [
mpi
python3
];
propagatedUserEnvPkgs = [ mpi ];

configureFlags = [
"--without-libctl"
"--with-mpi"
"--with-openmp"
];

passthru = { inherit mpi; };

meta = with lib; {
description = "Free finite-difference time-domain (FDTD) software for electromagnetic simulations";
homepage = "https://meep.readthedocs.io/en/latest/";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}

0 comments on commit 9a064bc

Please sign in to comment.