aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/libraries/libngspice/default.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/development/libraries/libngspice/default.nix
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/libraries/libngspice/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/libraries/libngspice/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/libraries/libngspice/default.nix b/infra/libkookie/nixpkgs/pkgs/development/libraries/libngspice/default.nix
new file mode 100644
index 000000000000..e1b9e4f0bdca
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/libraries/libngspice/default.nix
@@ -0,0 +1,26 @@
+{stdenv, fetchurl, bison, flex, fftw}:
+
+# Note that this does not provide the ngspice command-line utility. For that see
+# the ngspice derivation.
+stdenv.mkDerivation rec {
+ pname = "libngspice";
+ version = "31";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
+ sha256 = "10n2lnfrpsv4vyrirkphr4jwjjhy7i617g6za78dwirfjq63npw4";
+ };
+
+ 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; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING
+ maintainers = with maintainers; [ bgamari ];
+ platforms = platforms.unix;
+ };
+}