2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-10-05 21:42:54 +00:00
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, readline
|
|
|
|
, libX11
|
|
|
|
, libICE
|
|
|
|
, libXaw
|
|
|
|
, libXmu
|
|
|
|
, libXext
|
|
|
|
, libXt
|
|
|
|
, fftw
|
|
|
|
}:
|
2008-08-21 20:43:53 +00:00
|
|
|
|
2019-01-03 21:16:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ngspice";
|
2022-05-29 17:39:46 +00:00
|
|
|
version = "37";
|
2010-06-21 20:34:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-01-03 21:16:51 +00:00
|
|
|
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
|
2022-05-29 17:39:46 +00:00
|
|
|
sha256 = "1gpcic6b6xk3g4956jcsqljf33kj5g43cahmydq6m8rn39sadvlv";
|
2008-08-21 20:43:53 +00:00
|
|
|
};
|
|
|
|
|
2018-03-22 21:58:57 +00:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
2018-06-13 11:48:15 +00:00
|
|
|
buildInputs = [ readline libX11 libICE libXaw libXmu libXext libXt fftw ];
|
2010-06-21 20:34:23 +00:00
|
|
|
|
2018-03-22 21:58:57 +00:00
|
|
|
configureFlags = [ "--enable-x" "--with-x" "--with-readline" "--enable-xspice" "--enable-cider" ];
|
2008-08-21 20:43:53 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "The Next Generation Spice (Electronic Circuit Simulator)";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ngspice.sourceforge.net";
|
2015-05-27 19:56:04 +00:00
|
|
|
license = with licenses; [ "BSD" gpl2 ];
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ bgamari rongcuid ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2008-08-21 20:43:53 +00:00
|
|
|
};
|
|
|
|
}
|