forked from mirrors/nixpkgs
37 lines
852 B
Nix
37 lines
852 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, bison
|
|
, flex
|
|
, readline
|
|
, libX11
|
|
, libICE
|
|
, libXaw
|
|
, libXmu
|
|
, libXext
|
|
, libXt
|
|
, fftw
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ngspice";
|
|
version = "34";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
|
|
sha256 = "sha256-ImP//GaUdUlyr3By7wHP5irHkIANrWUbwpC/yueb17U=";
|
|
};
|
|
|
|
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 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;
|
|
};
|
|
}
|