2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
2023-11-16 04:20:00 +00:00
|
|
|
, wrapGAppsHook
|
2023-01-11 07:51:40 +00:00
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
, gtk3
|
|
|
|
, blas
|
|
|
|
, lapack
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xnec2c";
|
|
|
|
version = "4.4.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.xnec2c.org/releases/${pname}-v${version}.tar.gz";
|
|
|
|
hash = "sha256-6Yrx6LkJjfnMA/kJUDWLhGzGopZeecARSrcR++UScsU=";
|
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
];
|
2023-01-11 07:51:40 +00:00
|
|
|
buildInputs = [ gtk3 blas lapack ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.xnec2c.org/";
|
|
|
|
description = "Graphical antenna simulation";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ mvs ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
|
|
|
# Darwin support likely to be fixed upstream in the next release
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|