2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, gengetopt
|
|
|
|
, help2man
|
|
|
|
, groff
|
|
|
|
, libharu
|
|
|
|
, autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, libpng
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hyp2mat";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.0.18";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koendv";
|
|
|
|
repo = "hyp2mat";
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "03ibk51swxfl7pfrhcrfiffdi4mnf8kla0g1xj1lsrvrjwapfx03";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libharu
|
|
|
|
libpng
|
|
|
|
zlib
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
gengetopt
|
|
|
|
help2man
|
|
|
|
groff
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-library" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Import Hyperlynx Boardsim files to openEMS, an open source 3D full-wave electromagnetic field solver";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/koendv/hyp2mat";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ matthuszagh ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|