From 56fba1e91daab6ffd01d5f600deedfb02e586519 Mon Sep 17 00:00:00 2001 From: Weijia Wang Date: Mon, 24 Jun 2024 13:25:01 +0200 Subject: papers: fix build on darwin --- pkgs/by-name/pa/papers/package.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkgs') diff --git a/pkgs/by-name/pa/papers/package.nix b/pkgs/by-name/pa/papers/package.nix index 65b0407a4c02..dcdb5e6b19f7 100644 --- a/pkgs/by-name/pa/papers/package.nix +++ b/pkgs/by-name/pa/papers/package.nix @@ -14,6 +14,7 @@ , itstool , poppler , gnome +, darwin , djvulibre , libspectre , libarchive @@ -96,6 +97,8 @@ stdenv.mkDerivation (finalAttrs: { libgxps ] ++ lib.optionals supportNautilus [ gnome.nautilus + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Foundation ]; mesonFlags = [ @@ -117,6 +120,8 @@ stdenv.mkDerivation (finalAttrs: { # https://gitlab.gnome.org/GNOME/Incubator/papers/-/issues/176 --prefix PATH : "$out/bin" ) + '' + lib.optionalString stdenv.isDarwin '' + install_name_tool -add_rpath "$out/lib" "$out/bin/papers" ''; postFixup = '' -- cgit 1.4.1