diff options
author | xeji <xeji@cat3.de> | 2018-03-18 13:34:11 +0100 |
---|---|---|
committer | xeji <xeji@cat3.de> | 2018-03-18 13:36:14 +0100 |
commit | b6ca5726948a490017852bd123449f48c6701c20 (patch) | |
tree | 7e9c73f152a3ab6afe1dfbf0b6f947e0c6127849 /pkgs/development/libraries/epoxy | |
parent | a807035927a07c56d084689addb59b2a4b0a853f (diff) | |
download | nixpkgs-b6ca5726948a490017852bd123449f48c6701c20.tar nixpkgs-b6ca5726948a490017852bd123449f48c6701c20.tar.gz nixpkgs-b6ca5726948a490017852bd123449f48c6701c20.tar.bz2 nixpkgs-b6ca5726948a490017852bd123449f48c6701c20.tar.lz nixpkgs-b6ca5726948a490017852bd123449f48c6701c20.tar.xz nixpkgs-b6ca5726948a490017852bd123449f48c6701c20.tar.zst nixpkgs-b6ca5726948a490017852bd123449f48c6701c20.zip |
epoxy: fix darwin build
Diffstat (limited to 'pkgs/development/libraries/epoxy')
-rw-r--r-- | pkgs/development/libraries/epoxy/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/libraries/epoxy/default.nix b/pkgs/development/libraries/epoxy/default.nix index 306c5e756ec..81966f14a56 100644 --- a/pkgs/development/libraries/epoxy/default.nix +++ b/pkgs/development/libraries/epoxy/default.nix @@ -2,6 +2,8 @@ , libGL, libX11 }: +with stdenv.lib; + stdenv.mkDerivation rec { name = "epoxy-${version}"; version = "1.5.0"; @@ -18,17 +20,17 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook pkgconfig utilmacros python ]; buildInputs = [ libGL libX11 ]; - preConfigure = stdenv.lib.optional stdenv.isDarwin '' + preConfigure = optionalString stdenv.isDarwin '' substituteInPlace configure --replace build_glx=no build_glx=yes substituteInPlace src/dispatch_common.h --replace "PLATFORM_HAS_GLX 0" "PLATFORM_HAS_GLX 1" ''; # add libGL to rpath because libepoxy dlopen()s libEGL - postFixup = '' + postFixup = optionalString stdenv.isLinux '' patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libGL ]}:$(patchelf --print-rpath $out/lib/libepoxy.so.0.0.0)" $out/lib/libepoxy.so.0.0.0 ''; - meta = with stdenv.lib; { + meta = { description = "A library for handling OpenGL function pointer management"; homepage = https://github.com/anholt/libepoxy; license = licenses.mit; |