lapce: 0.1.0 -> 0.1.2

This commit is contained in:
linsui 2022-06-29 19:59:37 +08:00
parent cf3ab54b4a
commit 9884fac5df

View file

@ -4,19 +4,12 @@
, rustPlatform , rustPlatform
, cmake , cmake
, pkg-config , pkg-config
, python3
, perl , perl
, freetype
, fontconfig , fontconfig
, libxkbcommon
, xcbutil
, libX11
, libXcursor
, libXrandr
, libXi
, vulkan-loader
, copyDesktopItems , copyDesktopItems
, makeDesktopItem , makeDesktopItem
, glib
, gtk3
, openssl , openssl
, libobjc , libobjc
, Security , Security
@ -28,21 +21,20 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "lapce"; pname = "lapce";
version = "0.1.0"; version = "0.1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lapce"; owner = "lapce";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-KSumy7M7VNUib4CZ0ikBboEFMzDQt4xW+aUFHOi+0pA="; sha256 = "sha256-jH473FdBI3rGt90L3WwMDPP8M3w0rtG5D758ceCMw94=";
}; };
cargoSha256 = "sha256-7SVTcH9/Ilq8HcpJJI0KFiQA076lR2CAIBwmTVgmnjE="; cargoSha256 = "sha256-0Kya2KcyBDlt0TpFV60VAA3+JPfwId/+k8k+H97EhB0=";
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
python3
perl perl
copyDesktopItems copyDesktopItems
]; ];
@ -51,17 +43,11 @@ rustPlatform.buildRustPackage rec {
OPENSSL_NO_VENDOR = 1; OPENSSL_NO_VENDOR = 1;
buildInputs = [ buildInputs = [
glib
gtk3
openssl openssl
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
freetype
fontconfig fontconfig
libxkbcommon
xcbutil
libX11
libXcursor
libXrandr
libXi
vulkan-loader
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
libobjc libobjc
Security Security
@ -71,11 +57,6 @@ rustPlatform.buildRustPackage rec {
AppKit AppKit
]; ];
# Add missing vulkan dependency to rpath
preFixup = lib.optionalString stdenv.isLinux ''
patchelf --add-needed ${vulkan-loader}/lib/libvulkan.so.1 $out/bin/lapce
'';
postInstall = '' postInstall = ''
install -Dm0644 $src/extra/images/logo.svg $out/share/icons/hicolor/scalable/apps/lapce.svg install -Dm0644 $src/extra/images/logo.svg $out/share/icons/hicolor/scalable/apps/lapce.svg
''; '';