Skip to content
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

hal-hardware-analyzer: init at 2.0.0 #76960

Merged
merged 1 commit into from Jul 21, 2020

Conversation

@risicle
Copy link
Contributor

@risicle risicle commented Jan 5, 2020

Motivation for this change

Neat tool: https://media.ccc.de/v/36c3-10879-hal_-_the_open-source_hardware_analyzer

Works on darwin once #76958 is merged.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

@typetetris
Copy link
Contributor

@typetetris typetetris commented Jul 19, 2020

Result of nixpkgs-review pr 76960 1

1 package failed to build:
- hal-hardware-analyzer
@typetetris
Copy link
Contributor

@typetetris typetetris commented Jul 19, 2020

builder for '/nix/store/75i11wafs8kmbkr5impv8p58xdzfhf4a-hal-hardware-analyzer-2.0.0.drv' failed with exit code 1; last 10 log lines:

  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:

      BUILD_TESTING
      CMAKE_EXPORT_NO_PACKAGE_REGISTRY


  CMake Generate step failed.  Build files cannot be regenerated correctly.
cannot build derivation '/nix/store/4fijvh0syl5222x9mabfxp9v14mdhb7m-env.drv': 1 dependencies couldn't be built
@risicle risicle force-pushed the risicle:ris-hal-hardware-analyzer branch from 37ffe58 to 742da8f Jul 19, 2020
@risicle
Copy link
Contributor Author

@risicle risicle commented Jul 19, 2020

Fixed now?

@GrahamcOfBorg build hal-hardware-analyzer

Copy link
Contributor

@typetetris typetetris left a comment

Reviewed points
  • package path fits guidelines
  • package name fits guidelines
  • package version fits guidelines
  • package build on linux x86_64
  • executables tested on linux x86_64
  • meta.description is set and fits guidelines
  • meta.license fits upstream license
  • meta.platforms is set
  • meta.maintainers is set
  • build time only dependencies are declared in nativeBuildInputs
  • source is fetched using the appropriate function
  • phases are respected
Possible improvements

hal -g aborted in my system with

[20.07.2020 07:31:47] [core] [info] loading plugin '/nix/store/binw7skvbfw8qa8spyv0dlyvff3rbgjw-hal-hardware-analyzer-2.0.0/lib//libhal_gui.so'...
QSocketNotifier: Can only be used with threads started with QThread
[20.07.2020 07:31:47] [core] [info] Starting hal_gui.
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

Somebody running master should probably test this.

Comments
@risicle risicle force-pushed the risicle:ris-hal-hardware-analyzer branch from 742da8f to 586141d Jul 20, 2020
@risicle
Copy link
Contributor Author

@risicle risicle commented Jul 20, 2020

This is normal for qt applications on non-nixos because of qt's attempts at locating plugins - it needs a slight workaround I was going to say this but realized that I'm behind the times and someone's fixed this situation with wrapQtAppsHook, so I added that and it works out of the box now.

@risicle
Copy link
Contributor Author

@risicle risicle commented Jul 20, 2020

@GrahamcOfBorg build hal-hardware-analyzer

@risicle
Copy link
Contributor Author

@risicle risicle commented Jul 20, 2020

Though macos support seems to have evaporated due to igraph no longer building there :(

@risicle risicle force-pushed the risicle:ris-hal-hardware-analyzer branch from 586141d to 82e6477 Jul 20, 2020
@risicle risicle force-pushed the risicle:ris-hal-hardware-analyzer branch from 82e6477 to d2d921b Jul 20, 2020
Copy link
Contributor

@typetetris typetetris left a comment

hal -g now worked out of the box for me.

@typetetris
Copy link
Contributor

@typetetris typetetris commented Jul 21, 2020

Result of nixpkgs-review pr 76960 1

1 package built:
- hal-hardware-analyzer
@risicle risicle merged commit fd5c0b9 into NixOS:master Jul 21, 2020
16 checks passed
16 checks passed
hal-hardware-analyzer, hal-hardware-analyzer.passthru.tests on aarch64-linux No attempt
Details
Evaluation Performance Report Evaluator Performance Report
Details
grahamcofborg-eval ^.^!
Details
grahamcofborg-eval-check-maintainers matching changed paths to changed attrs...
Details
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
grahamcofborg-eval-darwin nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="d2d921b"; rev="d2d921b763e570f91b30c12045689458e96d93c9"; } ./pkgs/t
Details
grahamcofborg-eval-lib-tests nix-build --arg pkgs import ./. {} ./lib/tests/release.nix
Details
grahamcofborg-eval-nixos nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="d2d921b"; rev="d2d921b763e570f91b30c12045689458e96d93c9"; } ./nixos/
Details
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="d2d921b"; rev="d2d921b763e570f91b30c12045689458e96d93c9"; } ./nixos/
Details
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="d2d921b"; rev="d2d921b763e570f91b30c12045689458e96d93c9"; } ./nixos/
Details
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="d2d921b"; rev="d2d921b763e570f91b30c12045689458e96d93c9"; } ./pkgs/t
Details
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="d2d921b"; rev="d2d921b763e570f91b30c12045689458e96d93c9"; } ./pkgs/t
Details
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="d2d921b"; rev="d2d921b763e570f91b30c12045689458e96d93c9"; } ./pkgs/t
Details
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
hal-hardware-analyzer, hal-hardware-analyzer.passthru.tests on x86_64-linux Success
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.