summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2020-08-06 10:43:47 -0700
committerGitHub <noreply@github.com>2020-08-06 10:43:47 -0700
commitbe66239cfa96590bfe11179b2db1cec156c8b79e (patch)
tree874168a7a8c966db4cb54f4811348b7e9eeed14b /pkgs/applications
parent0db954535591921e67fad48b65fc1f73cd6516d2 (diff)
parent4390d9b9f188e825329378c5ce7dc4e086efe1d7 (diff)
downloadnixpkgs-be66239cfa96590bfe11179b2db1cec156c8b79e.tar
nixpkgs-be66239cfa96590bfe11179b2db1cec156c8b79e.tar.gz
nixpkgs-be66239cfa96590bfe11179b2db1cec156c8b79e.tar.bz2
nixpkgs-be66239cfa96590bfe11179b2db1cec156c8b79e.tar.lz
nixpkgs-be66239cfa96590bfe11179b2db1cec156c8b79e.tar.xz
nixpkgs-be66239cfa96590bfe11179b2db1cec156c8b79e.tar.zst
nixpkgs-be66239cfa96590bfe11179b2db1cec156c8b79e.zip
Merge pull request #94765 from matthuszagh/hyp2mat
hyp2mat: init at 0.0.17
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/science/electronics/hyp2mat/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/applications/science/electronics/hyp2mat/default.nix b/pkgs/applications/science/electronics/hyp2mat/default.nix
new file mode 100644
index 00000000000..1fa2c23b569
--- /dev/null
+++ b/pkgs/applications/science/electronics/hyp2mat/default.nix
@@ -0,0 +1,53 @@
+{ stdenv
+, fetchFromGitHub
+, bison
+, flex
+, gengetopt
+, help2man
+, groff
+, libharu
+, autoreconfHook
+, pkgconfig
+, libpng
+, zlib
+}:
+
+stdenv.mkDerivation rec {
+  pname = "hyp2mat";
+  version = "0.0.17";
+
+  src = fetchFromGitHub {
+    owner = "koendv";
+    repo = "hyp2mat";
+    rev = "v${version}";
+    sha256 = "04bd2vrn8y1izir7pwl34a60cg2v05baqcrmpfdx5fvf33bbflaj";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkgconfig
+  ];
+
+  buildInputs = [
+    libharu
+    libpng
+    zlib
+    bison
+    flex
+    gengetopt
+    help2man
+    groff
+  ];
+
+  configureFlags = [ "--enable-library" ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "Import Hyperlynx Boardsim files to openEMS, an open source 3D full-wave electromagnetic field solver";
+    homepage = https://github.com/koendv/hyp2mat;
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ matthuszagh ];
+    platforms = platforms.linux;
+  };
+}