15 stdenv.mkDerivation rec {
16 pname = "${lib.optionalString withNgshared "lib"}ngspice";
20 url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
21 hash = "sha256-FN1qbwhTHyBRwTrmN5CkVwi9Q/PneIamqEiYwpexNpk=";
34 ++ lib.optionals (!withNgshared) [
38 ++ lib.optionals stdenv.hostPlatform.isDarwin [
43 lib.optionals withNgshared [
52 enableParallelBuilding = true;
55 description = "Next Generation Spice (Electronic Circuit Simulator)";
56 mainProgram = "ngspice";
57 homepage = "http://ngspice.sourceforge.net";
58 license = with licenses; [
62 ]; # See https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/COPYING
63 maintainers = with maintainers; [ bgamari ];
64 platforms = platforms.unix;