summary refs log tree commit diff
path: root/pkgs/misc/emulators/wine
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-04-14 19:00:39 +0300
committerNikolay Amiantov <ab@fmap.me>2016-04-25 13:24:39 +0300
commit5ff40ddedfe3188749faa21d71ac013277aff1d1 (patch)
tree04a39e7c45ffbd82e17fc22c2a4998d0d34787f3 /pkgs/misc/emulators/wine
parentc779e30d531032a7744685e80c2143b358efe1b0 (diff)
downloadnixlib-5ff40ddedfe3188749faa21d71ac013277aff1d1.tar
nixlib-5ff40ddedfe3188749faa21d71ac013277aff1d1.tar.gz
nixlib-5ff40ddedfe3188749faa21d71ac013277aff1d1.tar.bz2
nixlib-5ff40ddedfe3188749faa21d71ac013277aff1d1.tar.lz
nixlib-5ff40ddedfe3188749faa21d71ac013277aff1d1.tar.xz
nixlib-5ff40ddedfe3188749faa21d71ac013277aff1d1.tar.zst
nixlib-5ff40ddedfe3188749faa21d71ac013277aff1d1.zip
add get* helper functions and mass-replace manual outputs search with them
Diffstat (limited to 'pkgs/misc/emulators/wine')
-rw-r--r--pkgs/misc/emulators/wine/base.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/misc/emulators/wine/base.nix b/pkgs/misc/emulators/wine/base.nix
index 804eb0bb304c..0398ed57a702 100644
--- a/pkgs/misc/emulators/wine/base.nix
+++ b/pkgs/misc/emulators/wine/base.nix
@@ -32,9 +32,10 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
   # them to the RPATH so that the user doesn't have to set them in
   # LD_LIBRARY_PATH.
   NIX_LDFLAGS = map (path: "-rpath " + path) (
-      map (x: "${x}/lib") ([ stdenv.cc.cc ] ++ (map (x: x.lib or x.out) buildInputs))
+      map (x: "${lib.getLib x}/lib") ([ stdenv.cc.cc ] ++ buildInputs)
       # libpulsecommon.so is linked but not found otherwise
-      ++ lib.optionals pulseaudioSupport (map (x: "${x}/lib/pulseaudio") (toBuildInputs pkgArches (pkgs: [ pkgs.libpulseaudio ])))
+      ++ lib.optionals pulseaudioSupport (map (x: "${lib.getLib x}/lib/pulseaudio")
+          (toBuildInputs pkgArches (pkgs: [ pkgs.libpulseaudio ])))
     );
 
   # Don't shrink the ELF RPATHs in order to keep the extra RPATH