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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
853 B
Nix
Raw Normal View History

{ lib, stdenv
2020-10-05 21:42:54 +00:00
, fetchurl
, bison
, flex
, readline
, libX11
, libICE
, libXaw
, libXmu
, libXext
, libXt
, fftw
}:
2019-01-03 21:16:51 +00:00
stdenv.mkDerivation rec {
pname = "ngspice";
2022-05-29 17:39:46 +00:00
version = "37";
src = fetchurl {
2019-01-03 21:16:51 +00:00
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
2022-05-29 17:39:46 +00:00
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;
};
}