diff options
author | Christian Kögler <ck3d@gmx.de> | 2022-10-10 17:38:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 17:38:21 +0200 |
commit | bafeef7e2a1272bcd50da6a7cbd796d87cdb033e (patch) | |
tree | 6d20a1fedd6b497971ce40dbd8f3f507dc4118cf /pkgs/applications/editors | |
parent | 6f004b7ed566e03e81f55a5913e97743181c024a (diff) | |
parent | 472f197978224bb542a0cab0b0503f456be27504 (diff) | |
download | nixpkgs-bafeef7e2a1272bcd50da6a7cbd796d87cdb033e.tar nixpkgs-bafeef7e2a1272bcd50da6a7cbd796d87cdb033e.tar.gz nixpkgs-bafeef7e2a1272bcd50da6a7cbd796d87cdb033e.tar.bz2 nixpkgs-bafeef7e2a1272bcd50da6a7cbd796d87cdb033e.tar.lz nixpkgs-bafeef7e2a1272bcd50da6a7cbd796d87cdb033e.tar.xz nixpkgs-bafeef7e2a1272bcd50da6a7cbd796d87cdb033e.tar.zst nixpkgs-bafeef7e2a1272bcd50da6a7cbd796d87cdb033e.zip |
Merge pull request #195123 from ck3d/neovide-no-src
neovide: remove dependency to skia sources
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/neovim/neovide/default.nix | 8 |
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"; |