1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libngspice/default.nix
Ben Gamari a62fffd9a5 ngspice: Move shared library to a new derivation
It turns out that the build system does not support building both the
command-line tool and the shared library at the same time. Consequently
the ngspice derivation has not provided the command-line tools since the
shared library was enabled in #31166.
2018-03-25 19:55:40 -04:00

26 lines
792 B
Nix

{stdenv, fetchurl, bison, flex, fftw}:
# Note that this does not provide the ngspice command-line utility. For that see
# the ngspice derivation.
stdenv.mkDerivation {
name = "libngspice-26";
src = fetchurl {
url = "mirror://sourceforge/ngspice/ngspice-26.tar.gz";
sha256 = "51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ fftw ];
configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ];
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; [ bgamari ];
platforms = platforms.linux;
};
}