1 {lib, stdenv, fetchurl, bison, flex, fftw}:
3 # Note that this does not provide the ngspice command-line utility. For that see
4 # the ngspice derivation.
5 stdenv.mkDerivation rec {
10 url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
11 sha256 = "1gpcic6b6xk3g4956jcsqljf33kj5g43cahmydq6m8rn39sadvlv";
14 nativeBuildInputs = [ flex bison ];
15 buildInputs = [ fftw ];
17 configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ];
20 description = "The Next Generation Spice (Electronic Circuit Simulator)";
21 homepage = "http://ngspice.sourceforge.net";
22 license = with licenses; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING
23 maintainers = with maintainers; [ bgamari ];
24 platforms = platforms.unix;