summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2022-10-08 21:39:01 +0200
committerChristian Kögler <ck3d@gmx.de>2022-10-08 21:39:01 +0200
commit472f197978224bb542a0cab0b0503f456be27504 (patch)
treedf7f7294c991255e86b069f15aa8b01a77576129 /pkgs/applications/editors
parent729189eee8cd504aa4fc1f54799e8ec5dc1b93c5 (diff)
downloadnixpkgs-472f197978224bb542a0cab0b0503f456be27504.tar
nixpkgs-472f197978224bb542a0cab0b0503f456be27504.tar.gz
nixpkgs-472f197978224bb542a0cab0b0503f456be27504.tar.bz2
nixpkgs-472f197978224bb542a0cab0b0503f456be27504.tar.lz
nixpkgs-472f197978224bb542a0cab0b0503f456be27504.tar.xz
nixpkgs-472f197978224bb542a0cab0b0503f456be27504.tar.zst
nixpkgs-472f197978224bb542a0cab0b0503f456be27504.zip
neovide: remove dependency to skia sources
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/neovim/neovide/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/editors/neovim/neovide/default.nix b/pkgs/applications/editors/neovim/neovide/default.nix
index 77f0735ec98..3d1aa9cdc57 100644
--- a/pkgs/applications/editors/neovim/neovide/default.nix
+++ b/pkgs/applications/editors/neovim/neovide/default.nix
@@ -27,6 +27,7 @@
 , ApplicationServices
 , AppKit
 , Carbon
+, removeReferencesTo
 }:
 rustPlatform.buildRustPackage rec {
   pname = "neovide";
@@ -80,6 +81,7 @@ rustPlatform.buildRustPackage rec {
     python2 # skia-bindings
     python3 # rust-xcb
     llvmPackages.clang # skia
+    removeReferencesTo
   ] ++ lib.optionals stdenv.isDarwin [ xcbuild ];
 
   # All tests passes but at the end cargo prints for unknown reason:
@@ -115,6 +117,10 @@ rustPlatform.buildRustPackage rec {
       xorg.libXi
     ] ++ lib.optionals enableWayland [ wayland ]);
   in ''
+      # library skia embeds the path to its sources
+      remove-references-to -t "$SKIA_SOURCE_DIR" \
+        $out/bin/neovide
+
       wrapProgram $out/bin/neovide \
         --prefix LD_LIBRARY_PATH : ${libPath}
     '';
@@ -128,6 +134,8 @@ rustPlatform.buildRustPackage rec {
     install -m444 -Dt $out/share/applications assets/neovide.desktop
   '';
 
+  disallowedReferences = [ SKIA_SOURCE_DIR ];
+
   meta = with lib; {
     description = "This is a simple graphical user interface for Neovim.";
     homepage = "https://github.com/Kethku/neovide";