cypress: use lib.getLib udev instead of udev.lib

This will pick the `lib` output if it exists, otherwise default to `out`.
This commit is contained in:
Florian Klink 2020-08-12 20:29:37 +02:00
parent 05a5afc979
commit 3c2f4cf704

View File

@ -1,4 +1,4 @@
{ stdenv, fetchzip, autoPatchelfHook, xorg, gtk2, gnome2, gtk3, nss, alsaLib, udev, unzip, wrapGAppsHook }:
{ stdenv, lib, fetchzip, autoPatchelfHook, xorg, gtk2, gnome2, gtk3, nss, alsaLib, udev, unzip, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "cypress";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
nss gtk2 alsaLib gnome2.GConf gtk3 unzip
];
runtimeDependencies = [ udev.lib ];
runtimeDependencies = [ (lib.getLib udev) ];
installPhase = ''
mkdir -p $out/bin $out/opt/cypress