diff --git a/pkgs/by-name/ho/horizon-eda/base.nix b/pkgs/by-name/ho/horizon-eda/base.nix index 31c980998aa4..c3eb3d959dbd 100644 --- a/pkgs/by-name/ho/horizon-eda/base.nix +++ b/pkgs/by-name/ho/horizon-eda/base.nix @@ -24,13 +24,13 @@ in # This base is used in horizon-eda and python3Packages.horizon-eda rec { pname = "horizon-eda"; - version = "2.6.0"; + version = "2.7.0"; src = fetchFromGitHub { owner = "horizon-eda"; repo = "horizon"; rev = "v${version}"; - hash = "sha256-0ikCR10r/WPb+H+Ut2GO6y4A/9bctJLanL/RR4r9GWs="; + hash = "sha256-Y2oopRycYSxtiKuQZSfTBVP7RmpZ0JA+QyZgnrpoAes="; }; nativeBuildInputs = [ @@ -56,13 +56,9 @@ rec { ]; env = { - NIX_CFLAGS_COMPILE = toString [ - "-fpermissive" - ]; + CASROOT = opencascade-occt; }; - CASROOT = opencascade-occt; - meta = { description = "Free EDA software to develop printed circuit boards"; homepage = "https://horizon-eda.org"; diff --git a/pkgs/by-name/ho/horizon-eda/package.nix b/pkgs/by-name/ho/horizon-eda/package.nix index dcea3c1cddf0..f03763e98fc8 100644 --- a/pkgs/by-name/ho/horizon-eda/package.nix +++ b/pkgs/by-name/ho/horizon-eda/package.nix @@ -17,7 +17,6 @@ stdenv.mkDerivation { version src meta - CASROOT env ; diff --git a/pkgs/development/python-modules/horizon-eda/default.nix b/pkgs/development/python-modules/horizon-eda/default.nix index e444dc2705ca..c083572ed019 100644 --- a/pkgs/development/python-modules/horizon-eda/default.nix +++ b/pkgs/development/python-modules/horizon-eda/default.nix @@ -1,5 +1,6 @@ { buildPythonPackage, + fetchpatch, horizon-eda, pycairo, python, @@ -15,13 +16,21 @@ buildPythonPackage { version src meta - CASROOT + env ; pyproject = false; disabled = pythonOlder "3.9"; + patches = [ + # Replaces osmesa with EGL_PLATFORM_SURFACELESS_MESA + (fetchpatch { + url = "https://github.com/horizon-eda/horizon/commit/663a8adaa1cb7eae7a824de07df8909bc33677c3.patch"; + hash = "sha256-g0rP9NBDdDijh35Y2h4me9N5R/mjCn+2w7uhnv9bweY="; + }) + ]; + buildInputs = base.buildInputs ++ [ python ];