summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/science/electronics/kicad/base.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/science/electronics/kicad/base.nix')
-rw-r--r--pkgs/applications/science/electronics/kicad/base.nix32
1 files changed, 20 insertions, 12 deletions
diff --git a/pkgs/applications/science/electronics/kicad/base.nix b/pkgs/applications/science/electronics/kicad/base.nix
index e6bed51c5bc3..d884a60c984f 100644
--- a/pkgs/applications/science/electronics/kicad/base.nix
+++ b/pkgs/applications/science/electronics/kicad/base.nix
@@ -21,6 +21,10 @@
, libpthreadstubs
, libXdmcp
, unixODBC
+, libgit2
+, libsecret
+, libgcrypt
+, libgpg-error
, util-linux
, libselinux
@@ -92,12 +96,11 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DKICAD_USE_EGL=ON"
"-DOCC_INCLUDE_DIR=${opencascade-occt}/include/opencascade"
+ # https://gitlab.com/kicad/code/kicad/-/issues/17133
+ "-DCMAKE_CTEST_ARGUMENTS='--exclude-regex;qa_spice'"
]
- ++ optionals (stable) [
- # https://gitlab.com/kicad/code/kicad/-/issues/12491
- # should be resolved in the next major? release
- "-DCMAKE_CTEST_ARGUMENTS='--exclude-regex;qa_eeschema'"
- ]
+ ++ optional (stdenv.hostPlatform.system == "aarch64-linux")
+ "-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;'qa_spice|qa_cli'"
++ optional (stable && !withNgspice) "-DKICAD_SPICE=OFF"
++ optionals (!withScripting) [
"-DKICAD_SCRIPTING_WXPYTHON=OFF"
@@ -126,6 +129,10 @@ stdenv.mkDerivation rec {
doxygen
graphviz
pkg-config
+ libgit2
+ libsecret
+ libgcrypt
+ libgpg-error
]
# wanted by configuration on linux, doesn't seem to affect performance
# no effect on closure size
@@ -180,13 +187,14 @@ stdenv.mkDerivation rec {
doInstallCheck = !(debug);
installCheckTarget = "test";
- pythonForTests = python.withPackages(ps: with ps; [
- numpy
- pytest
- cairosvg
- pytest-image-diff
- ]);
- nativeInstallCheckInputs = optional (!stable) pythonForTests;
+ nativeInstallCheckInputs = [
+ (python.withPackages(ps: with ps; [
+ numpy
+ pytest
+ cairosvg
+ pytest-image-diff
+ ]))
+ ];
dontStrip = debug;