diff --git a/pkgs/by-name/li/libngspice/package.nix b/pkgs/by-name/li/libngspice/package.nix index 88a053851a55..8ea656c325cc 100644 --- a/pkgs/by-name/li/libngspice/package.nix +++ b/pkgs/by-name/li/libngspice/package.nix @@ -21,6 +21,24 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-8arYq6woKKe3HaZkEd6OQGUk518wZuRnVUOcSQRC1zQ="; }; + patches = [ + (builtins.toFile "fix-cppduals.patch" '' + --- a/src/include/cppduals/duals/dual + +++ b/src/include/cppduals/duals/dual + @@ -485,10 +485,6 @@ struct is_arithmetic> : is_arithmetic {}; + + #endif // CPPDUALS_ENABLE_IS_ARITHMETIC + + -/// Duals are compound types. + -template + -struct is_compound> : true_type {}; + - + // Modification of std::numeric_limits<> per + // C++03 17.4.3.1/1, and C++11 18.3.2.3/1. + template + '') + ]; + nativeBuildInputs = [ flex bison