2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, bison, flex, fftw}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Note that this does not provide the ngspice command-line utility. For that see
|
|
|
|
# the ngspice derivation.
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libngspice";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "37";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "1gpcic6b6xk3g4956jcsqljf33kj5g43cahmydq6m8rn39sadvlv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
|
|
buildInputs = [ fftw ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|