mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
37 lines
853 B
Nix
37 lines
853 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, bison
|
|
, flex
|
|
, readline
|
|
, libX11
|
|
, libICE
|
|
, libXaw
|
|
, libXmu
|
|
, libXext
|
|
, libXt
|
|
, fftw
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ngspice";
|
|
version = "37";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
|
|
sha256 = "1gpcic6b6xk3g4956jcsqljf33kj5g43cahmydq6m8rn39sadvlv";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|