2021-01-22 00:00:13 +07:00
|
|
|
{lib, stdenv, fetchurl, bison, flex, fftw}:
|
2018-03-22 17:58:57 -04:00
|
|
|
|
|
|
|
# Note that this does not provide the ngspice command-line utility. For that see
|
|
|
|
# the ngspice derivation.
|
2019-01-03 16:16:51 -05:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libngspice";
|
2020-11-03 09:21:31 +00:00
|
|
|
version = "33";
|
2018-03-22 17:58:57 -04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-01-03 16:16:51 -05:00
|
|
|
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
|
2020-11-03 09:21:31 +00:00
|
|
|
sha256 = "1wa1hmpn13spmxqgbb1m7vgy32mwvjqwrxhymzll8z65q5nbd7dr";
|
2018-03-22 17:58:57 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
|
|
buildInputs = [ fftw ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ];
|
|
|
|
|
2021-01-22 00:00:13 +07:00
|
|
|
meta = with lib; {
|
2018-03-22 17:58:57 -04:00
|
|
|
description = "The Next Generation Spice (Electronic Circuit Simulator)";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "http://ngspice.sourceforge.net";
|
2018-11-29 03:12:41 -08:00
|
|
|
license = with licenses; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING
|
2018-03-22 17:58:57 -04:00
|
|
|
maintainers = with maintainers; [ bgamari ];
|
2020-08-15 18:53:54 +02:00
|
|
|
platforms = platforms.unix;
|
2018-03-22 17:58:57 -04:00
|
|
|
};
|
|
|
|
}
|