New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kicad: init unstable at version 2017-12-11 #32648
Conversation
I took the liberty of adding @viric as a maintainer. Please approve :-) |
14f3fd4
to
dc884b4
Compare
@@ -0,0 +1,52 @@ | |||
{ config, wxGTK, lib, pkgs, stdenv, fetchFromGitHub, cmake, mesa, zlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config
is not usedpkgs
should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done locally.
Should I squash it in the previous commit to update the PR, or add a new commit?
pkgs/top-level/all-packages.nix
Outdated
@@ -19017,6 +19017,12 @@ with pkgs; | |||
boost = boost160; | |||
}; | |||
|
|||
kicad-unstable = callPackage ../applications/science/electronics/kicad/unstable.nix { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python.pkgs.callPackage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KiCad optionally uses python for scripting. It is not a python application.
Is this change still required?
Also no other package in top-level.nix
uses the proposed code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a few that use pythonPackages.callPackage
which is the same.
Yes, this should be used. Top-level packages should not have any inherit (pythonPackages) foo;
as that risks mixing Python 2 and 3 packages (which was a common issue 3+years ago).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I 'll use pythonPackages.callPackage
for uniformity. Unless you object.
If you object, I propose to also change the others in a separate PR.
pkgs/top-level/all-packages.nix
Outdated
kicad-unstable = callPackage ../applications/science/electronics/kicad/unstable.nix { | ||
wxGTK = wxGTK30; | ||
boost = boost160; | ||
inherit (pythonPackages) wxPython; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving out the wxGTK = wxGTK30
line makes it default to wxGTK28. Even when using python.pkgs.callPackage
. Then compiling fails due to finding wxwidgets 2.8.12 and at least 3.0.0 is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was referring only to
inherit (pythonPackages) wxPython;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you meant removing just the last line (inherit...
), it seems to compile well.
wxPython related build problems only appear at 75% of compiling, so it 'll take some time to have full confirmation.
333d4e7
to
c09336e
Compare
All proposed changes have been applied. |
c09336e
to
862a6dd
Compare
862a6dd
to
f314157
Compare
Motivation for this change
Files are not forward compatible, so when cooperating with someone who needs features of the Nightly Development Build, you also need this newer version.
In contrast with the current package for the stable release of KiCad, this package also enables oce, ngspice and scripting support.
This package does not provide the component libraries (schematics, PCB footprints, 3D models). They can be obtained from KiCad, unpacked and referenced at runtime.
It is called unstable and not nightly because it doesn't automatically track upstream nightly development builds.
wxPython headers are needed at buildtime. This PR includes a necessary change to wxPython. That change is also in a separate PR: #32647
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)