2018-03-22 21:58:57 +00:00
|
|
|
{stdenv, fetchurl, bison, flex, fftw}:
|
|
|
|
|
|
|
|
# Note that this does not provide the ngspice command-line utility. For that see
|
|
|
|
# the ngspice derivation.
|
|
|
|
stdenv.mkDerivation {
|
2018-11-29 11:12:41 +00:00
|
|
|
name = "libngspice-29";
|
2018-03-22 21:58:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-29 11:12:41 +00:00
|
|
|
url = "mirror://sourceforge/ngspice/ngspice-29.tar.gz";
|
|
|
|
sha256 = "0jjwz73naq7l9yhwdqbpnrfckywp2ffkppivxjv8w92zq7xhyvcd";
|
2018-03-22 21:58:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2018-11-29 11:12:41 +00:00
|
|
|
license = with licenses; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING
|
2018-03-22 21:58:57 +00:00
|
|
|
maintainers = with maintainers; [ bgamari ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|