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
Conversation
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 |
@aszlig already fixed this, so this PR is now only the minor cleanups that were included as part of my fix. |
@@ -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 |
There was a problem hiding this comment.
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.
.
@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. |
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
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)