Merge pull request #118165 from 0qq/drawio/update
drawio: 14.4.3 -> 14.5.1
This commit is contained in:
commit
91936abbdd
|
@ -4,18 +4,18 @@
|
||||||
, alsaLib, atk, at-spi2-atk, at-spi2-core, cairo, dbus, cups, expat
|
, alsaLib, atk, at-spi2-atk, at-spi2-core, cairo, dbus, cups, expat
|
||||||
, gdk-pixbuf, glib, gtk3, libX11, libXScrnSaver, libXcomposite, libXcursor
|
, gdk-pixbuf, glib, gtk3, libX11, libXScrnSaver, libXcomposite, libXcursor
|
||||||
, libXdamage, libXext, libXfixes, libXi, libXrandr, libXrender, libXtst
|
, libXdamage, libXext, libXfixes, libXi, libXrandr, libXrender, libXtst
|
||||||
, libxcb, libuuid, nspr, nss, pango
|
, libxcb, libuuid, libxshmfence, nspr, nss, pango
|
||||||
|
|
||||||
, systemd
|
, systemd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "drawio";
|
pname = "drawio";
|
||||||
version = "14.4.3";
|
version = "14.5.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/jgraph/drawio-desktop/releases/download/v${version}/draw.io-x86_64-${version}.rpm";
|
url = "https://github.com/jgraph/drawio-desktop/releases/download/v${version}/drawio-x86_64-${version}.rpm";
|
||||||
hash = "sha256-0wBjZg6IvjVTzAGeXTBBZjIN6s9NxKV0r76YK9h4fFk=";
|
hash = "sha256-ZrEoeeEhHQOLm/L3KA43Ru5fruIPK35CCUsllwpPB58=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
|
||||||
libXi
|
libXi
|
||||||
libXrandr
|
libXrandr
|
||||||
libXrender
|
libXrender
|
||||||
|
libxshmfence
|
||||||
libXtst
|
libXtst
|
||||||
libxcb
|
libxcb
|
||||||
libuuid
|
libuuid
|
||||||
|
@ -66,7 +67,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share
|
mkdir -p $out/share
|
||||||
cp -r opt/draw.io $out/share/
|
cp -r opt/drawio $out/share/
|
||||||
|
|
||||||
# Application icon
|
# Application icon
|
||||||
mkdir -p $out/share/icons/hicolor
|
mkdir -p $out/share/icons/hicolor
|
||||||
|
@ -77,11 +78,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
# Symlink wrapper
|
# Symlink wrapper
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s $out/share/draw.io/drawio $out/bin/drawio
|
ln -s $out/share/drawio/drawio $out/bin/drawio
|
||||||
|
|
||||||
# Update binary path
|
# Update binary path
|
||||||
substituteInPlace $out/share/applications/drawio.desktop \
|
substituteInPlace $out/share/applications/drawio.desktop \
|
||||||
--replace /opt/draw.io/drawio $out/bin/drawio
|
--replace /opt/drawio/drawio $out/bin/drawio
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue