94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
26 lines
890 B
Nix
26 lines
890 B
Nix
{lib, stdenv, fetchurl, bison, flex, fftw}:
|
|
|
|
# Note that this does not provide the ngspice command-line utility. For that see
|
|
# the ngspice derivation.
|
|
stdenv.mkDerivation rec {
|
|
pname = "libngspice";
|
|
version = "40";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
|
|
sha256 = "sha256-4wPKe8D1lOLWqoT2h4VCPmvwyNrQCbsgvk1XQliOiQ0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
buildInputs = [ fftw ];
|
|
|
|
configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ];
|
|
|
|
meta = with 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.unix;
|
|
};
|
|
}
|