nixpkgs/pkgs/applications/science/electronics/ngspice/default.nix

26 lines
842 B
Nix
Raw Normal View History

{stdenv, fetchurl, bison, flex
, readline, libX11, libICE, libXaw, libXmu, libXext, libXt, fftw }:
2019-01-03 21:16:51 +00:00
stdenv.mkDerivation rec {
pname = "ngspice";
2020-01-07 01:40:29 +00:00
version = "31";
src = fetchurl {
2019-01-03 21:16:51 +00:00
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
2020-01-07 01:40:29 +00:00
sha256 = "10n2lnfrpsv4vyrirkphr4jwjjhy7i617g6za78dwirfjq63npw4";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ readline libX11 libICE libXaw libXmu libXext libXt fftw ];
configureFlags = [ "--enable-x" "--with-x" "--with-readline" "--enable-xspice" "--enable-cider" ];
meta = with stdenv.lib; {
description = "The Next Generation Spice (Electronic Circuit Simulator)";
homepage = http://ngspice.sourceforge.net;
license = with licenses; [ "BSD" gpl2 ];
maintainers = with maintainers; [ bgamari rongcuid ];
platforms = platforms.linux;
};
}