about summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/ngspice/default.nix
blob: ee7c0a5844d4a595698bc7d5a99172b7ac57fbaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{stdenv, fetchurl, readline, bison, flex, libX11, libICE, libXaw, libXext}:

stdenv.mkDerivation {
  name = "ngspice-26";

  src = fetchurl {
    url = "mirror://sourceforge/ngspice/ngspice-26.tar.gz";
    sha256 = "51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108";
  };

  buildInputs = [ readline libX11 flex bison libICE libXaw libXext ];

  configureFlags = [ "--enable-x" "--with-x" "--with-readline" "--enable-xspice" "--enable-cider" "--with-ngshared" ];

  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; [ viric rongcuid ];
    platforms = platforms.linux;
  };
}