libngspice: 42 -> 43

This commit is contained in:
R. Ryantm 2024-07-14 00:40:02 +00:00 committed by Weijia Wang
parent ce968d8378
commit b473e96d03

View File

@ -7,15 +7,17 @@
, withNgshared ? true , withNgshared ? true
, libXaw , libXaw
, libXext , libXext
, llvmPackages
, readline
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "${lib.optionalString withNgshared "lib"}ngspice"; pname = "${lib.optionalString withNgshared "lib"}ngspice";
version = "42"; version = "43";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz"; url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
hash = "sha256-c3/jhGqyMzolDfrfHtbr4YYK8dil/154A8dyzEJW5Qo="; hash = "sha256-FN1qbwhTHyBRwTrmN5CkVwi9Q/PneIamqEiYwpexNpk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -25,9 +27,12 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
fftw fftw
readline
] ++ lib.optionals (!withNgshared) [ ] ++ lib.optionals (!withNgshared) [
libXaw libXaw
libXext libXext
] ++ lib.optionals stdenv.isDarwin [
llvmPackages.openmp
]; ];
configureFlags = lib.optionals withNgshared [ configureFlags = lib.optionals withNgshared [