mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
neovide: 0b976c3 -> 4159c47f
* neovide: 0b976c3 -> 4159c47f Neovide moved from Vulkan to OpenGL which has better GPU support.
This commit is contained in:
parent
4d420f27eb
commit
64d2892c92
3292
pkgs/applications/editors/neovim/neovide/Cargo.lock
generated
3292
pkgs/applications/editors/neovim/neovide/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -9,65 +9,58 @@
|
||||
, expat
|
||||
, openssl
|
||||
, SDL2
|
||||
, vulkan-loader
|
||||
, fontconfig
|
||||
, ninja
|
||||
, gn
|
||||
, llvmPackages
|
||||
, makeFontsConf
|
||||
, libglvnd
|
||||
, libxkbcommon
|
||||
, xorg
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "neovide";
|
||||
version = "20210515";
|
||||
version = "unstable-2021-06-21";
|
||||
|
||||
src =
|
||||
let
|
||||
repo = fetchFromGitHub {
|
||||
owner = "Kethku";
|
||||
repo = "neovide";
|
||||
rev = "0b976c3d28bbd24e6c83a2efc077aa96dde1e9eb";
|
||||
sha256 = "sha256-asaOxcAenKdy/yJvch3HFfgnrBnQagL02UpWYnz7sa8=";
|
||||
};
|
||||
in
|
||||
runCommand "source" { } ''
|
||||
cp -R ${repo} $out
|
||||
chmod -R +w $out
|
||||
# Reasons for patching Cargo.toml:
|
||||
# - I got neovide built with latest compatible skia-save version 0.35.1
|
||||
# and I did not try to get it with 0.32.1 working. Changing the skia
|
||||
# version is time consuming, because of manual dependecy tracking and
|
||||
# long compilation runs.
|
||||
sed -i $out/Cargo.toml \
|
||||
-e '/skia-safe/s;0.32.1;0.35.1;'
|
||||
cp ${./Cargo.lock} $out/Cargo.lock
|
||||
'';
|
||||
src = fetchFromGitHub {
|
||||
owner = "Kethku";
|
||||
repo = "neovide";
|
||||
rev = "4159c47ff4f30073b92b9d63fc6ab70e07b74b6d";
|
||||
sha256 = "sha256-XwirJGXMGxc/NkpSeHBUc16ppvJ+H4ECnrOVu030Qfg=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-XMPRM3BAfCleS0LXQv03A3lQhlUhAP8/9PdVbAUnfG0=";
|
||||
cargoSha256 = "sha256-WCk9kt81DtBwpEEdKH9gKQSVxAvH+vkyP2y24tU+vzY=";
|
||||
|
||||
SKIA_OFFLINE_SOURCE_DIR =
|
||||
SKIA_SOURCE_DIR =
|
||||
let
|
||||
repo = fetchFromGitHub {
|
||||
owner = "rust-skia";
|
||||
repo = "skia";
|
||||
# see rust-skia/Cargo.toml#package.metadata skia
|
||||
rev = "m86-0.35.0";
|
||||
sha256 = "sha256-uTSgtiEkbE9e08zYOkRZyiHkwOLr/FbBYkr2d+NZ8J0=";
|
||||
# see rust-skia:skia-bindings/Cargo.toml#package.metadata skia
|
||||
rev = "m90-0.38.3";
|
||||
sha256 = "sha256-l8c4vfO1PELAT8bDyr/yQGZetZsaufAlJ6bBOXz7E1w=";
|
||||
};
|
||||
# The externals for skia are taken from skia/DEPS
|
||||
externals = lib.mapAttrs (n: v: fetchgit v) (lib.importJSON ./skia-externals.json);
|
||||
in
|
||||
runCommand "source" { } (''
|
||||
cp -R ${repo} $out
|
||||
chmod -R +w $out
|
||||
runCommand "source" {} (
|
||||
''
|
||||
cp -R ${repo} $out
|
||||
chmod -R +w $out
|
||||
|
||||
mkdir -p $out/third_party/externals
|
||||
cd $out/third_party/externals
|
||||
'' + (builtins.concatStringsSep "\n" (lib.mapAttrsToList (name: value: "cp -ra ${value} ${name}") externals)));
|
||||
mkdir -p $out/third_party/externals
|
||||
cd $out/third_party/externals
|
||||
'' + (builtins.concatStringsSep "\n" (lib.mapAttrsToList (name: value: "cp -ra ${value} ${name}") externals))
|
||||
);
|
||||
|
||||
SKIA_OFFLINE_NINJA_COMMAND = "${ninja}/bin/ninja";
|
||||
SKIA_OFFLINE_GN_COMMAND = "${gn}/bin/gn";
|
||||
SKIA_NINJA_COMMAND = "${ninja}/bin/ninja";
|
||||
SKIA_GN_COMMAND = "${gn}/bin/gn";
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
||||
|
||||
preConfigure = ''
|
||||
unset CC CXX
|
||||
'';
|
||||
|
||||
# test needs a valid fontconfig file
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
|
||||
@ -92,9 +85,9 @@ rustPlatform.buildRustPackage rec {
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/neovide \
|
||||
--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
|
||||
'';
|
||||
wrapProgram $out/bin/neovide \
|
||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd libxkbcommon xorg.libXcursor xorg.libXext xorg.libXrandr xorg.libXi ]}
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for n in 16x16 32x32 48x48 256x256; do
|
||||
|
@ -16,8 +16,8 @@
|
||||
},
|
||||
"zlib": {
|
||||
"url": "https://chromium.googlesource.com/chromium/src/third_party/zlib",
|
||||
"rev": "eaf99a4e2009b0e5759e6070ad1760ac1dd75461",
|
||||
"sha256": "sha256-B4PgeSVBU/MSkPkXTu9jPIa37dNJPm2HpmiVf6XuOGE="
|
||||
"rev": "c876c8f87101c5a75f6014b0f832499afeb65b73",
|
||||
"sha256": "sha256-mwozVo8ymyrYN4tw+/ZnSI+xogSTZQ6PUBba/jQqRkE="
|
||||
},
|
||||
"harfbuzz": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git",
|
||||
@ -31,7 +31,7 @@
|
||||
},
|
||||
"libgifcodec": {
|
||||
"url": "https://skia.googlesource.com/libgifcodec",
|
||||
"rev": "d06d2a6d42baf6c0c91cacc28df2542a911d05fe",
|
||||
"sha256": "sha256-ke1X5iyj2ah2NqGVdFv8GuoRAzXg1aCeTdZwUM8wvCI="
|
||||
"rev": "fd59fa92a0c86788dcdd84d091e1ce81eda06a77",
|
||||
"sha256": "sha256-spyZU4QhV2xrHcBRoYqYgCR0wEM5lgfhGh8pqJE5yXM="
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user