nixpkgs/pkgs/development/libraries/libngspice/default.nix

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

27 lines
891 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl, bison, flex, fftw}:
# Note that this does not provide the ngspice command-line utility. For that see
# the ngspice derivation.
2019-01-03 21:16:51 +00:00
stdenv.mkDerivation rec {
pname = "libngspice";
2022-05-29 17:40:38 +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:40:38 +00:00
sha256 = "1gpcic6b6xk3g4956jcsqljf33kj5g43cahmydq6m8rn39sadvlv";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ fftw ];
configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ];
meta = with lib; {
description = "The Next Generation Spice (Electronic Circuit Simulator)";
homepage = "http://ngspice.sourceforge.net";
license = with licenses; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING
maintainers = with maintainers; [ bgamari ];
2020-08-15 16:53:54 +00:00
platforms = platforms.unix;
};
}