diff --git a/pkgs/applications/science/electronics/ngspice/default.nix b/pkgs/applications/science/electronics/ngspice/default.nix new file mode 100644 index 000000000000..c172075f11f8 --- /dev/null +++ b/pkgs/applications/science/electronics/ngspice/default.nix @@ -0,0 +1,17 @@ +args: +args.stdenv.mkDerivation { + name = "ng-spice-rework-15c"; + + src = args.fetchurl { + url = mirror://sourceforge/ngspice/ng-spice-rework-15c.tar.gz; + sha256 = "0v0pbdc54ra0s98dz6mhj80n333ggbn4xpf53vi66sd02hcjblmg"; + }; + + buildInputs =(with args; [readline]); + + meta = { + description = "The Next Generation Spice (Electronic Circuit Simulator)."; + homepage = http://ngspice.sourceforge.net; + license = ["BSD" "GPLv2"]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cc57b8916008..c5061d1c9073 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7195,6 +7195,12 @@ let pkgs = rec { inherit fetchurl stdenv ocaml ncurses; }; + ### SCIENCE / ELECTRONICS + + ngspice = import ../applications/science/electronics/ngspice { + inherit fetchurl stdenv readline; + }; + ### MISC atari800 = import ../misc/emulators/atari800 {