Merge pull request #179767 from BillHuang2001/init/feishu
feishu: init at 5.9.18
This commit is contained in:
commit
1603f337a9
@ -1627,6 +1627,12 @@
|
||||
githubId = 13324165;
|
||||
name = "Bill Ewanick";
|
||||
};
|
||||
billhuang = {
|
||||
email = "bill.huang2001@gmail.com";
|
||||
github = "BillHuang2001";
|
||||
githubId = 11801831;
|
||||
name = "Bill Huang";
|
||||
};
|
||||
binarin = {
|
||||
email = "binarin@binarin.ru";
|
||||
github = "binarin";
|
||||
|
@ -0,0 +1,173 @@
|
||||
{ alsa-lib
|
||||
, at-spi2-atk
|
||||
, at-spi2-core
|
||||
, atk
|
||||
, autoPatchelfHook
|
||||
, cairo
|
||||
, cups
|
||||
, dbus
|
||||
, dpkg
|
||||
, expat
|
||||
, fetchurl
|
||||
, fontconfig
|
||||
, freetype
|
||||
, gdk-pixbuf
|
||||
, glib
|
||||
, glibc
|
||||
, gnutls
|
||||
, gtk3
|
||||
, lib
|
||||
, libGL
|
||||
, libX11
|
||||
, libXScrnSaver
|
||||
, libXcomposite
|
||||
, libXcursor
|
||||
, libXdamage
|
||||
, libXext
|
||||
, libXfixes
|
||||
, libXi
|
||||
, libXrandr
|
||||
, libXrender
|
||||
, libXtst
|
||||
, libappindicator-gtk3
|
||||
, libcxx
|
||||
, libdbusmenu
|
||||
, libdrm
|
||||
, libgcrypt
|
||||
, libglvnd
|
||||
, libnotify
|
||||
, libuuid
|
||||
, libxcb
|
||||
, libxkbcommon
|
||||
, libxkbfile
|
||||
, libxshmfence
|
||||
, makeShellWrapper
|
||||
, mesa
|
||||
, nspr
|
||||
, nss
|
||||
, pango
|
||||
, pciutils
|
||||
, pipewire
|
||||
, pixman
|
||||
, stdenv
|
||||
, systemd
|
||||
, wayland
|
||||
, wrapGAppsHook
|
||||
, xdg-utils
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "5.9.18";
|
||||
pname = "feishu";
|
||||
packageHash = "5db94058d7ad"; # A hash value used in the download url
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://sf3-cn.feishucdn.com/obj/ee-appcenter/${packageHash}/Feishu-linux_x64-${version}.deb";
|
||||
sha256 = "ffb29b5a184b025d4e4ea468a8f684a7067ab5bfd45867abc370e59be63892c7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
makeShellWrapper
|
||||
dpkg
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
|
||||
# for autopatchelf
|
||||
alsa-lib
|
||||
cups
|
||||
libXdamage
|
||||
libdrm
|
||||
libxshmfence
|
||||
mesa
|
||||
nspr
|
||||
nss
|
||||
];
|
||||
|
||||
rpath = lib.makeLibraryPath [
|
||||
alsa-lib
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
atk
|
||||
cairo
|
||||
cups
|
||||
dbus
|
||||
expat
|
||||
fontconfig
|
||||
freetype
|
||||
gdk-pixbuf
|
||||
glib
|
||||
glibc
|
||||
gnutls
|
||||
libGL
|
||||
libX11
|
||||
libXScrnSaver
|
||||
libXcomposite
|
||||
libXcursor
|
||||
libXdamage
|
||||
libXext
|
||||
libXfixes
|
||||
libXi
|
||||
libXrandr
|
||||
libXrender
|
||||
libXtst
|
||||
libappindicator-gtk3
|
||||
libcxx
|
||||
libdbusmenu
|
||||
libdrm
|
||||
libgcrypt
|
||||
libglvnd
|
||||
libnotify
|
||||
libuuid
|
||||
libxcb
|
||||
libxkbcommon
|
||||
libxkbfile
|
||||
libxshmfence
|
||||
mesa
|
||||
nspr
|
||||
nss
|
||||
pango
|
||||
pciutils
|
||||
pipewire
|
||||
pixman
|
||||
stdenv.cc.cc
|
||||
systemd
|
||||
wayland
|
||||
xdg-utils
|
||||
];
|
||||
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
# This deb file contains a setuid binary,
|
||||
# so 'dpkg -x' doesn't work here.
|
||||
dpkg --fsys-tarfile $src | tar --extract
|
||||
mkdir -p $out
|
||||
mv usr/share $out/
|
||||
mv opt/ $out/
|
||||
chmod -R g-w $out
|
||||
|
||||
substituteInPlace $out/share/applications/bytedance-feishu.desktop \
|
||||
--replace /usr/bin/bytedance-feishu-stable $out/opt/bytedance/feishu/bytedance-feishu
|
||||
|
||||
wrapProgram $out/opt/bytedance/feishu/feishu \
|
||||
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
||||
--prefix LD_LIBRARY_PATH : ${rpath}:$out/opt/bytedance/feishu
|
||||
|
||||
mkdir -p $out/share/icons/hicolor
|
||||
base="$out/opt/bytedance/feishu"
|
||||
for size in 16 24 32 48 64 128 256; do
|
||||
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps
|
||||
ln -s $base/product_logo_$size.png $out/share/icons/hicolor/''${size}x''${size}/apps/bytedance-feishu.png
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An all-in-one collaboration suite";
|
||||
homepage = "https://www.feishu.cn/en/";
|
||||
downloadPage = "https://www.feishu.cn/en/#en_home_download_block";
|
||||
license = licenses.unfree;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -26882,6 +26882,8 @@ with pkgs;
|
||||
|
||||
feh = callPackage ../applications/graphics/feh { };
|
||||
|
||||
feishu = callPackage ../applications/networking/instant-messengers/feishu {};
|
||||
|
||||
filezilla = callPackage ../applications/networking/ftp/filezilla { };
|
||||
|
||||
buildMozillaMach = opts: callPackage (import ../applications/networking/browsers/firefox/common.nix opts) {};
|
||||
|
Loading…
Reference in New Issue
Block a user