depot/third_party/nixpkgs/pkgs/applications/science/electronics/ngspice/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
844 B
Nix

{stdenv, fetchurl, bison, flex
, readline, libX11, libICE, libXaw, libXmu, libXext, libXt, fftw }:
stdenv.mkDerivation rec {
pname = "ngspice";
version = "31";
src = fetchurl {
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
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;
};
}