Merge pull request #233940 from wegank/ngspice-bump

ngspice: 37 -> 40

authored by Weijia Wang and committed by GitHub f96c214d aeb75dba

+33 -46
-36
pkgs/applications/science/electronics/ngspice/default.nix
··· 1 - { lib, stdenv 2 - , fetchurl 3 - , bison 4 - , flex 5 - , readline 6 - , libX11 7 - , libICE 8 - , libXaw 9 - , libXmu 10 - , libXext 11 - , libXt 12 - , fftw 13 - }: 14 - 15 - stdenv.mkDerivation rec { 16 - pname = "ngspice"; 17 - version = "37"; 18 - 19 - src = fetchurl { 20 - url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz"; 21 - sha256 = "1gpcic6b6xk3g4956jcsqljf33kj5g43cahmydq6m8rn39sadvlv"; 22 - }; 23 - 24 - nativeBuildInputs = [ flex bison ]; 25 - buildInputs = [ readline libX11 libICE libXaw libXmu libXext libXt fftw ]; 26 - 27 - configureFlags = [ "--enable-x" "--with-x" "--with-readline" "--enable-xspice" "--enable-cider" ]; 28 - 29 - meta = with lib; { 30 - description = "The Next Generation Spice (Electronic Circuit Simulator)"; 31 - homepage = "http://ngspice.sourceforge.net"; 32 - license = with licenses; [ "BSD" gpl2 ]; 33 - maintainers = with maintainers; [ bgamari rongcuid ]; 34 - platforms = platforms.unix; 35 - }; 36 - }
···
+30 -9
pkgs/development/libraries/libngspice/default.nix
··· 1 - {lib, stdenv, fetchurl, bison, flex, fftw}: 2 3 - # Note that this does not provide the ngspice command-line utility. For that see 4 - # the ngspice derivation. 5 stdenv.mkDerivation rec { 6 - pname = "libngspice"; 7 version = "40"; 8 9 src = fetchurl { 10 url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz"; 11 - sha256 = "sha256-4wPKe8D1lOLWqoT2h4VCPmvwyNrQCbsgvk1XQliOiQ0="; 12 }; 13 14 - nativeBuildInputs = [ flex bison ]; 15 - buildInputs = [ fftw ]; 16 17 - configureFlags = [ "--with-ngshared" "--enable-xspice" "--enable-cider" ]; 18 19 meta = with lib; { 20 description = "The Next Generation Spice (Electronic Circuit Simulator)"; 21 homepage = "http://ngspice.sourceforge.net"; 22 license = with licenses; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING 23 - maintainers = with maintainers; [ bgamari ]; 24 platforms = platforms.unix; 25 }; 26 }
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , flex 5 + , bison 6 + , fftw 7 + , withNgshared ? true 8 + , libXaw 9 + , libXext 10 + }: 11 12 stdenv.mkDerivation rec { 13 + pname = "${lib.optionalString withNgshared "lib"}ngspice"; 14 version = "40"; 15 16 src = fetchurl { 17 url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz"; 18 + hash = "sha256-4wPKe8D1lOLWqoT2h4VCPmvwyNrQCbsgvk1XQliOiQ0="; 19 }; 20 21 + nativeBuildInputs = [ 22 + flex 23 + bison 24 + ]; 25 + 26 + buildInputs = [ 27 + fftw 28 + ] ++ lib.optionals (!withNgshared) [ 29 + libXaw 30 + libXext 31 + ]; 32 33 + configureFlags = lib.optionals withNgshared [ 34 + "--with-ngshared" 35 + ] ++ [ 36 + "--enable-xspice" 37 + "--enable-cider" 38 + ]; 39 40 meta = with lib; { 41 description = "The Next Generation Spice (Electronic Circuit Simulator)"; 42 homepage = "http://ngspice.sourceforge.net"; 43 license = with licenses; [ bsd3 gpl2Plus lgpl2Plus ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING 44 + maintainers = with maintainers; [ bgamari rongcuid ]; 45 platforms = platforms.unix; 46 }; 47 }
+3 -1
pkgs/top-level/all-packages.nix
··· 38406 38407 librepcb = libsForQt5.callPackage ../applications/science/electronics/librepcb { }; 38408 38409 - ngspice = callPackage ../applications/science/electronics/ngspice { }; 38410 38411 nvc = darwin.apple_sdk_11_0.callPackage ../applications/science/electronics/nvc { }; 38412
··· 38406 38407 librepcb = libsForQt5.callPackage ../applications/science/electronics/librepcb { }; 38408 38409 + ngspice = libngspice.override { 38410 + withNgshared = false; 38411 + }; 38412 38413 nvc = darwin.apple_sdk_11_0.callPackage ../applications/science/electronics/nvc { }; 38414