Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ fetchFromGitHub, lib, kicad, python3Packages, xvfb-run,}:
python3Packages.buildPythonApplication rec { pname = "interactive-html-bom"; version = "2.10.0"; pyproject = true;
src = fetchFromGitHub { owner = "openscopeproject"; repo = "InteractiveHtmlBom"; tag = "v${version}"; hash = "sha256-o7GWdAFFK3zK0fc7aTSwOsd/c4uPg3cJfR0SXbl2RW8="; };
build-system = [ python3Packages.hatchling ];
dependencies = [ python3Packages.jsonschema python3Packages.wxpython python3Packages.kicad ];
nativeCheckInputs = [ xvfb-run ];
checkPhase = '' runHook preCheck
cp ${kicad.base}/share/kicad/demos/stickhub/StickHub.kicad_pcb . HOME=$(mktemp -d) xvfb-run $out/bin/generate_interactive_bom --no-browser StickHub.kicad_pcb
runHook postCheck '';
meta = { description = "Interactive HTML BOM generation for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer"; homepage = "https://github.com/openscopeproject/InteractiveHtmlBom/"; license = lib.licenses.mit; changelog = "https://github.com/openscopeproject/InteractiveHtmlBom/releases/tag/${src.tag}"; maintainers = with lib.maintainers; [ wuyoli ]; mainProgram = "generate_interactive_bom"; };}