mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
nwjs: use lib.getLib systemd instead of systemd.lib
This will pick the `lib` output if it exists, otherwise default to `out`.
This commit is contained in:
parent
d512c08798
commit
9fb8e4a765
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, buildEnv, makeWrapper
|
||||
{ stdenv, lib, fetchurl, buildEnv, makeWrapper
|
||||
|
||||
, xorg, alsaLib, dbus, glib, gtk3, atk, pango, freetype, fontconfig
|
||||
, gdk-pixbuf, cairo, nss, nspr, gconf, expat, systemd, libcap
|
||||
@ -61,7 +61,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/share/nwjs/nw
|
||||
|
||||
ln -s ${systemd.lib}/lib/libudev.so $out/share/nwjs/libudev.so.0
|
||||
ln -s ${lib.getLib systemd}/lib/libudev.so $out/share/nwjs/libudev.so.0
|
||||
|
||||
libpath="$out/share/nwjs/lib/"
|
||||
for f in "$libpath"/*.so; do
|
||||
|
Loading…
Reference in New Issue
Block a user