kikit and kicad package set#249464
Conversation
|
@ofborg build kicadPackages.kikit kicadPackages.kikit-library python310Packages.euclid3 python310Packages.kikit python310Packages.pcbnew-transition python310Packages.pybars3 python310Packages.pymeta3 python311Packages.euclid3 python311Packages.kikit python311Packages.pcbnew-transition python311Packages.pybars3 python311Packages.pymeta3 |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
wow, that's a lot of work, awesome i'll do a review later for now, |
|
@evils hey friendly reminder. We've just unbroken installing packages via PCM. |
|
nice i've been a bit busier than expected, and don't immediately foresee a moment i'll have time don't hesitate to poke me again in a week if i haven't gotten around to it then |
|
@SuperSandro2000, we've pushed a commit addressing most of your feedback. Would appreciate if you could take another look! |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
@evils have a moment to review? |
There was a problem hiding this comment.
the changes in applications/science/electronics/kicad look ok to me
i'm unfamiliar with KiKit and don't know how to use these changes
but it builds and is a fairly clean addition to the KiCad wrapper package (default.nix)
the closest thing to a blocking issue would be calling the third party packages kicadPackages
(it seems like one could expect the KiCad project's packages3d there)
|
Just rebased on nixpkgs-unstable and tested locally again. Here's how to test locally: Then create a project and look for the KiKit button in the toolbar. Click it. And if you happen to know how to use it, go ahead. We don't. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
I contacted @yaqwsx, the author of KiKit for help with verification. |
|
Hi, I tried building the package, but I am unsure if I use Nix correctly. I run into two problems:
Once I build the package, how can I install it to test it properly? I also noticed that this package builds KiKit 1.3.0, however, 1.4.0 is the most recent release. |
|
@yaqwsx thank you for trying! Funny. I don't get that wxPython related error. The kikit executable on this branch can be obtained this way: And then look in Regarding the version of KiKit, that is just a matter of bumping, I suppose. I'll try doing that. |
|
@yaqwsx would you mind going on a call with me so that I could debug the wxPython error? |
|
No problem with the call; I am busy for the rest of the week. What timezone are you in so I can suggest a time slot that would suit us both? |
|
weird, our try |
|
@evils Even when I run KiCAD and open Pcbnew from it I get the same error message. When open the pure nix shell, I no longer get the error, but also the KiCAD doesn't see KiKit backend. |
That would result in a default kicad. Default kicad comes with no addons. Try this to obtain a pure nix shell with kicad and kikit: To be clear, when that succeeds, you'd have a Let us know, please. |
Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
…on: init at 0.3.4 Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
Create a new kicadAddons package set, and a mechanism to override kicad to bundle addons. Co-authored-by: Rohit <[email protected]> Co-authored-by: Jeremy Fleischman <[email protected]> Co-authored-by: Shahar "Dawn" Or <[email protected]> Co-authored-by: Alejandro Sanchez Medina <[email protected]> Co-authored-by: Matúš Ferech <[email protected]>
|
Ok, with shell specififed as above, it seems to work just from KiCAD & Pcbnew. However, what I cannot get working is to invoke KiKit as a command line utility; the following should work: |
|
Hi, yes, the last expression introduced kikit as only a kicad addon. You can use the following expresion to add kikit itself as well. nix-shell --pure -p '
let pkgs = (import ./. {}); in
[
(pkgs.kicad.override { addons=[pkgs.kicadAddons.kikit pkgs.kicadAddons.kikit-library]; })
pkgs.kikit
]' |
Sorry, @yaqwsx. I mislead you with the paragraph above. |
|
With the last instructions, I was able to run both, KiKit from GUI and KiKit from CLI. The basic functionality works as expected. The last thing is that if you want to build 3D-printed stencil (KiKit's command |
|
Awesome feedback! OpenSCAD should not be a blocker for this PR. I suggest this can be merged. |
kicad: Add support for 3rd party packages
kikit (init at 1.3.0)
kicadAddons.kikit (init at 1.3.0)
kicadAddons.kikit-library (init at 1.3.0)
python310Packages.euclid3 (init at 0.01)
python310Packages.pcbnew-transition (init at 0.3.4)
python310Packages.pybars3 (init at 0.9.7)
python310Packages.pymeta3 (init at 0.5.1)
python311Packages.euclid3 (init at 0.01)
python311Packages.pcbnew-transition (init at 0.3.4)
python311Packages.pybars3 (init at 0.9.7)
python311Packages.pymeta3 (init at 0.5.1)
Co-authored-by: Rohit [email protected]
Co-authored-by: Jeremy Fleischman [email protected]
Co-authored-by: Shahar "Dawn" Or [email protected]
Co-authored-by: Alejandro Sanchez Medina [email protected]
Co-authored-by: Matúš Ferech [email protected]
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)