diff options
author | Weijia Wang | 2024-06-24 13:25:01 +0200 |
---|---|---|
committer | Pyrox | 2024-06-24 12:48:12 -0400 |
commit | 56fba1e91daab6ffd01d5f600deedfb02e586519 (patch) | |
tree | 9344666201df3d0dce324e9a940c63032e28c2cd /pkgs | |
parent | 9515e2e098bb8b06e4da0dc175011879050b9b2c (diff) |
papers: fix build on darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/pa/papers/package.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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 = '' |