Merge pull request #66709 from danieldk/drawio-11.1.4
drawio: 11.1.1 -> 11.1.4
This commit is contained in:
commit
feb06947c8
1 changed files with 6 additions and 6 deletions
|
@ -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; {
|
||||||
|
|
Loading…
Reference in a new issue