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

libnifalcon: init at 1.1 #95355

Closed
wants to merge 1 commit into from
Closed

Conversation

wesleysliao
Copy link

Motivation for this change

A library for development using the Novint Falcon haptic device.

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.

Copy link
Contributor

@ymarkus ymarkus left a comment

Choose a reason for hiding this comment

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

Reviewed points
  • package path fits guidelines
  • package name fits guidelines
  • package version fits guidelines
  • package build on x86_64-linux
  • executables tested on x86_64-linux
  • 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

Please see my comments

Comments

Builds fine & all binaries can be run, although I can't test them more, as I don't have this device.

'';

maintainers = with maintainers; [ wesliao ];
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Please set meta.platforms, see nixpkgs manual for details:

Platforms should be set or the package will not get binary substitutes.

Copy link
Contributor

Choose a reason for hiding this comment

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

platforms = platforms.all; should be fine, as the project states so itself.

sha256 = "1gp2cf56rlnlw785vl90w6scpknajw2mdny26yqlx5yl277x9b9s";
};

buildInputs = [ cmake libusb1 doxygen pkgconfig expat ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these all needed as run-time dependencies?
Build-time dependencies should be declared as nativeBuildInputs

Copy link
Member

Choose a reason for hiding this comment

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

at least pkg-config needs to move.

Comment on lines +21 to +22
longDescription =
''libnifalcon is a development library for the NovInt Falcon,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move the '' up behind longDescription, so it looks like this:

longDescription = ''
  libnifalcon is a development library for the NovInt Falcon,
  [...]
'';

outputs = [ "out" "dev" ];

meta = with stdenv.lib; {
homepage = "http://qdot.github.com/libnifalcon/";
Copy link
Contributor

Choose a reason for hiding this comment

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

Link does not seem to work.

{ stdenv, fetchFromGitHub, cmake, doxygen, libusb1, pkgconfig, expat }:

stdenv.mkDerivation rec {
name = "libnifalcon-1.1";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name = "libnifalcon-1.1";
pname = "libnifalcon";
version = "1.1";

src = fetchFromGitHub {
owner = "libnifalcon";
repo = "libnifalcon";
rev = "c1546ec8d9a94b3be7d74f8ba9f1a121a0ebb0c2";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
rev = "c1546ec8d9a94b3be7d74f8ba9f1a121a0ebb0c2";
rev = version;

@@ -8779,6 +8779,12 @@
email = "kirill.wedens@gmail.com";
name = "wedens";
};
wesliao = {
Copy link
Member

Choose a reason for hiding this comment

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

Please put this into a separate commit with the message maintainers: add wesliao.

sha256 = "1gp2cf56rlnlw785vl90w6scpknajw2mdny26yqlx5yl277x9b9s";
};

buildInputs = [ cmake libusb1 doxygen pkgconfig expat ];
Copy link
Member

Choose a reason for hiding this comment

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

at least pkg-config needs to move.

@SuperSandro2000
Copy link
Member

Closing due to unresponsive author. Feel free to reopen the discussion.

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

5 participants