Merge pull request #66709 from danieldk/drawio-11.1.4

drawio: 11.1.1 -> 11.1.4
This commit is contained in:
WilliButz 2019-08-16 11:41:31 +02:00 committed by GitHub
commit feb06947c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "drawio"; pname = "drawio";
version = "11.1.1"; version = "11.1.4";
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}/draw.io-x86_64-${version}.rpm";
sha256 = "1jibkxx00rma641c3xr7720qj9slqsvhbpi7nawi6f2f91gzyc10"; sha256 = "0ca8wkkdr7kbb8il84nq05qgd5ykjq15fdv9432wr5p9xmqixz1q";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -70,18 +70,18 @@ stdenv.mkDerivation rec {
# Application icon # Application icon
mkdir -p $out/share/icons/hicolor mkdir -p $out/share/icons/hicolor
cp -r usr/share/icons/hicolor/0x0 $out/share/icons/hicolor/1024x1024 cp -r usr/share/icons/hicolor/* $out/share/icons/hicolor/
# XDG desktop item # XDG desktop item
cp -r usr/share/applications $out/share/applications cp -r usr/share/applications $out/share/applications
# Symlink wrapper # Symlink wrapper
mkdir -p $out/bin mkdir -p $out/bin
ln -s $out/share/draw.io/draw.io $out/bin/draw.io ln -s $out/share/draw.io/drawio $out/bin/drawio
# Update binary path # Update binary path
substituteInPlace $out/share/applications/draw.io.desktop \ substituteInPlace $out/share/applications/drawio.desktop \
--replace /opt/draw.io/draw.io $out/bin/draw.io --replace /opt/draw.io/drawio $out/bin/drawio
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {