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

libspnav: init at 2.3.0 #75866

Merged
merged 6 commits into from Feb 26, 2021
Merged

libspnav: init at 2.3.0 #75866

merged 6 commits into from Feb 26, 2021

Conversation

Sohalt
Copy link
Contributor

@Sohalt Sohalt commented Dec 18, 2019

Motivation for this change

This adds libspnav and spacenavd to use 6DOF mice, such as the 3DConnexion SpaceNavigator.

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 nix-review --run "nix-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 @

@Sohalt Sohalt changed the title Spnav libspnav: init at 2.3.0 Dec 18, 2019
@Sohalt
Copy link
Contributor Author

Sohalt commented Dec 18, 2019

Please tell me if I should split this into multiple pull requests.

pkgs/applications/misc/spacenav-cube-example/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libspnav/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libspnav/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/spacenavd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/spacenavd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/spacenavd/default.nix Outdated Show resolved Hide resolved
pkgs/applications/misc/spacenav-cube-example/default.nix Outdated Show resolved Hide resolved
pkgs/applications/misc/blender/default.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/spacenavd.nix Outdated Show resolved Hide resolved
@infinisil
Copy link
Member

Looking good now, only thing remaining is to clean up the history, with one initial commit for adding yourself as a maintainer, one commit for each package and one for the module

Copy link
Member

@infinisil infinisil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good from my side

@infinisil
Copy link
Member

Can you rebase this instead of merging from master?

@stale
Copy link

stale bot commented Oct 31, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 31, 2020
@Sohalt
Copy link
Contributor Author

Sohalt commented Oct 31, 2020

Still relevant

pkgs/applications/misc/spacenav-cube-example/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libspnav/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libspnav/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/spacenavd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/spacenavd/default.nix Outdated Show resolved Hide resolved
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 25, 2020
pkgs/applications/graphics/freecad/default.nix Outdated Show resolved Hide resolved
pkgs/applications/misc/spacenav-cube-example/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libspnav/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libspnav/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libspnav/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/spacenavd/default.nix Outdated Show resolved Hide resolved
Copy link
Contributor

@flokli flokli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little nit, otherwise LGTM. I can't really test this currently, as I don't have access to the hardware currently.

pkgs/applications/graphics/freecad/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/freecad/default.nix Outdated Show resolved Hide resolved
pkgs/applications/misc/spacenav-cube-example/default.nix Outdated Show resolved Hide resolved
@@ -0,0 +1,32 @@
{ stdenv, lib, fetchFromGitHub, libX11}:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{ stdenv, lib, fetchFromGitHub, libX11}:
{ stdenv, lib, fetchFromGitHub, libX11 }:

pkgs/misc/drivers/spacenavd/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 75866 run on x86_64-linux 1

1 package blacklisted:
  • tests.nixos-functions.nixos-test
3 packages built:
  • libspnav
  • spacenav-cube-example
  • spacenavd

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

libspnav:

Please add a comment on the line above, explaining the purpose of this patch.
Near pkgs/development/libraries/libspnav/default.nix:16:15:

   |
16 |   patches = [ ./configure-socket-path.patch ];
   |               ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-patch-comment.md

spacenav-cube-example:

installPhase should probably contain runHook preInstall and runHook postInstall.

Near pkgs/applications/misc/spacenav-cube-example/default.nix:15:3:

   |
15 |   installPhase = ''
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-phase-hooks.md

spacenavd:

Please add a comment on the line above, explaining the purpose of this patch.
Near pkgs/misc/drivers/spacenavd/default.nix:16:15:

   |
16 |   patches = [ ./configure-socket-path.patch ];
   |               ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-patch-comment.md

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than that LGTM

pkgs/applications/graphics/freecad/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 75866 run on x86_64-darwin 1

3 packages failed to build and already failed to build on hydra master:

@Sohalt
Copy link
Contributor Author

Sohalt commented Feb 26, 2021

Thanks to everyone who helped review this!

@Sohalt Sohalt requested a review from ajs124 February 26, 2021 16:00
@flokli flokli merged commit 43f83f9 into NixOS:master Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants