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

pcsc-cyberjack: minor cleanups #84866

Merged
merged 1 commit into from Apr 22, 2020
Merged

Conversation

peterhoeg
Copy link
Member

Previously, pulling in libusb meant that you would get libusb1 as well as it was
propagated by libusb which meant that derivations incorrectly depending on
libusb when they should be depending on libusb1 would work.

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.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/update-error-usbdev-c3-error-error-neither-hal-nor-usb1-found/6638/4

@peterhoeg
Copy link
Member Author

@aszlig already fixed this, so this PR is now only the minor cleanups that were included as part of my fix.

@ofborg ofborg bot requested a review from aszlig April 10, 2020 01:42
@peterhoeg peterhoeg changed the title pcsc-cyberjack: libusb -> libusb1 pcsc-cyberjack: minor cleanups Apr 10, 2020
@@ -1,25 +1,26 @@
{ stdenv, fetchurl, pkgconfig, libusb1, pcsclite }:
{ stdenv, lib, fetchurl, pkgconfig, libusb1, pcsclite }:

stdenv.mkDerivation rec {
pname = "pcsc-cyberjack";
version = "3.99.5_SP12";

src = with stdenv.lib; let
Copy link
Member

Choose a reason for hiding this comment

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

Since you already brought lib into scope, I think it also makes sense to remove with stdenv.lib; everywhere and prefix the corresponding functions with lib..

@peterhoeg
Copy link
Member Author

@aszlig - just some minor cleanups left. Instead of trying to be clever with the version, just be specific. It's cleaner and easier to read.

@peterhoeg peterhoeg merged commit 44a502b into NixOS:master Apr 22, 2020
@peterhoeg peterhoeg deleted the f/cyberjack branch April 22, 2020 23:44
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

3 participants