llpp: fix build on darwin

+6 -4
+6 -4
pkgs/applications/misc/llpp/default.nix
··· 1 { stdenv, lib, substituteAll, makeWrapper, fetchFromGitHub, fetchpatch, ocaml, pkg-config, mupdf, libX11, jbig2dec, openjpeg, libjpeg , lcms2, harfbuzz, 2 - libGLU, libGL, gumbo, freetype, zlib, xclip, inotify-tools, procps }: 3 4 assert lib.versionAtLeast (lib.getVersion ocaml) "4.07"; 5 ··· 21 strictDeps = true; 22 23 nativeBuildInputs = [ makeWrapper ocaml pkg-config ]; 24 - buildInputs = [ mupdf libX11 libGLU libGL freetype zlib gumbo jbig2dec openjpeg libjpeg lcms2 harfbuzz ]; 25 26 dontStrip = true; 27 ··· 38 install -d $out/bin 39 install build/llpp $out/bin 40 install misc/llpp.inotify $out/bin/llpp.inotify 41 - 42 wrapProgram $out/bin/llpp \ 43 --prefix PATH ":" "${xclip}/bin" 44 ··· 51 meta = with lib; { 52 homepage = "https://repo.or.cz/w/llpp.git"; 53 description = "A MuPDF based PDF pager written in OCaml"; 54 - platforms = platforms.linux; 55 maintainers = with maintainers; [ pSub ]; 56 license = licenses.gpl3; 57 };
··· 1 { stdenv, lib, substituteAll, makeWrapper, fetchFromGitHub, fetchpatch, ocaml, pkg-config, mupdf, libX11, jbig2dec, openjpeg, libjpeg , lcms2, harfbuzz, 2 + libGLU, libGL, gumbo, freetype, zlib, xclip, inotify-tools, procps, darwin }: 3 4 assert lib.versionAtLeast (lib.getVersion ocaml) "4.07"; 5 ··· 21 strictDeps = true; 22 23 nativeBuildInputs = [ makeWrapper ocaml pkg-config ]; 24 + buildInputs = [ mupdf libX11 freetype zlib gumbo jbig2dec openjpeg libjpeg lcms2 harfbuzz ] 25 + ++ lib.optionals stdenv.isLinux [ libGLU libGL ] 26 + ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.OpenGL darwin.apple_sdk.frameworks.Cocoa ]; 27 28 dontStrip = true; 29 ··· 40 install -d $out/bin 41 install build/llpp $out/bin 42 install misc/llpp.inotify $out/bin/llpp.inotify 43 + '' + lib.optionalString stdenv.isLinux '' 44 wrapProgram $out/bin/llpp \ 45 --prefix PATH ":" "${xclip}/bin" 46 ··· 53 meta = with lib; { 54 homepage = "https://repo.or.cz/w/llpp.git"; 55 description = "A MuPDF based PDF pager written in OCaml"; 56 + platforms = platforms.linux ++ platforms.darwin; 57 maintainers = with maintainers; [ pSub ]; 58 license = licenses.gpl3; 59 };