xnec2c: clean up and improve (#381218)
This commit is contained in:
commit
541bb38fc0
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchFromGitHub,
|
||||||
autoreconfHook,
|
autoreconfHook,
|
||||||
wrapGAppsHook3,
|
wrapGAppsHook3,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
@ -9,17 +9,20 @@
|
|||||||
gtk3,
|
gtk3,
|
||||||
blas,
|
blas,
|
||||||
lapack,
|
lapack,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert (!blas.isILP64) && (!lapack.isILP64);
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "xnec2c";
|
pname = "xnec2c";
|
||||||
version = "4.4.16";
|
version = "4.4.16";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://www.xnec2c.org/releases/${pname}-v${version}.tar.gz";
|
owner = "KJ7LNW";
|
||||||
hash = "sha256-XiZi8pfmfHjGpePkRy/pF1TA+5RdxX4AGuKzG5Wqrmk=";
|
repo = "xnec2c";
|
||||||
|
tag = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-W8JwbCSXt5cjgncOzV1wltPnJxwWC6B29eaT8emIU9Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -34,15 +37,17 @@ stdenv.mkDerivation rec {
|
|||||||
lapack
|
lapack
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
homepage = "https://www.xnec2c.org/";
|
homepage = "https://www.xnec2c.org/";
|
||||||
description = "Graphical antenna simulation";
|
description = "Graphical antenna simulation";
|
||||||
mainProgram = "xnec2c";
|
mainProgram = "xnec2c";
|
||||||
license = licenses.gpl3;
|
license = lib.licenses.gpl3;
|
||||||
maintainers = with maintainers; [ mvs ];
|
maintainers = with lib.maintainers; [ mvs ];
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
|
|
||||||
# Darwin support likely to be fixed upstream in the next release
|
# Darwin support likely to be fixed upstream in the next release
|
||||||
broken = stdenv.hostPlatform.isDarwin;
|
broken = stdenv.hostPlatform.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user