nixpkgs/pkgs/development/libraries/libngspice/default.nix

27 lines
894 B
Nix
Raw Normal View History

{stdenv, fetchurl, bison, flex, fftw}:
# Note that this does not provide the ngspice command-line utility. For that see
# the ngspice derivation.
2019-01-03 21:16:51 +00:00
stdenv.mkDerivation rec {
pname = "libngspice";
2019-12-24 00:35:21 +00:00
version = "31";
src = fetchurl {
2019-01-03 21:16:51 +00:00
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
2019-12-24 00:35:21 +00:00
sha256 = "10n2lnfrpsv4vyrirkphr4jwjjhy7i617g6za78dwirfjq63npw4";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ fftw ];
configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ];
meta = with stdenv.lib; {
description = "The Next Generation Spice (Electronic Circuit Simulator)";
homepage = "http://ngspice.sourceforge.net";
license = with licenses; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING
maintainers = with maintainers; [ bgamari ];
platforms = platforms.linux;
};
}