azuredatastudio: 1.17.1 -> 1.33.0 (#143078)

authored by Claudio Bley and committed by GitHub 7f2b8a3b df56e761

+66 -5
+66 -5
pkgs/applications/misc/azuredatastudio/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchurl 4 + , copyDesktopItems 5 + , makeDesktopItem 4 6 , makeWrapper 5 7 , libuuid 6 8 , libunwind 9 + , libxkbcommon 7 10 , icu 8 11 , openssl 9 12 , zlib ··· 13 16 , gnutar 14 17 , atomEnv 15 18 , libkrb5 19 + , libdrm 20 + , mesa 21 + , xorg 16 22 }: 17 23 18 24 # from justinwoo/azuredatastudio-nix 19 25 # https://github.com/justinwoo/azuredatastudio-nix/blob/537c48aa3981cd1a82d5d6e508ab7e7393b3d7c8/default.nix 20 26 27 + let 28 + desktopItem = makeDesktopItem { 29 + name = "azuredatastudio"; 30 + desktopName = "Azure Data Studio"; 31 + comment = "Data Management Tool that enables you to work with SQL Server, Azure SQL DB and SQL DW from Windows, macOS and Linux."; 32 + genericName = "Text Editor"; 33 + exec = "azuredatastudio --no-sandbox --unity-launch %F"; 34 + icon = "azuredatastudio"; 35 + startupNotify = "true"; 36 + categories = "Utility;TextEditor;Development;IDE;"; 37 + mimeType = "text/plain;inode/directory;application/x-azuredatastudio-workspace;"; 38 + extraEntries = '' 39 + StartupWMClass=azuredatastudio 40 + Actions=new-empty-window; 41 + Keywords=azuredatastudio; 42 + 43 + [Desktop Action new-empty-window] 44 + Name=New Empty Window 45 + Exec=azuredatastudio --no-sandbox --new-window %F 46 + Icon=azuredatastudio 47 + ''; 48 + }; 49 + 50 + urlHandlerDesktopItem = makeDesktopItem { 51 + name = "azuredatastudio-url-handler"; 52 + desktopName = "Azure Data Studio - URL Handler"; 53 + comment = "Azure Data Studio"; 54 + genericName = "Text Editor"; 55 + exec = "azuredatastudio --no-sandbox --open-url %U"; 56 + icon = "azuredatastudio"; 57 + startupNotify = "true"; 58 + categories = "Utility;TextEditor;Development;IDE;"; 59 + mimeType = "x-scheme-handler/azuredatastudio;"; 60 + extraEntries = '' 61 + NoDisplay=true 62 + Keywords=azuredatastudio; 63 + ''; 64 + }; 65 + in 21 66 stdenv.mkDerivation rec { 22 67 23 68 pname = "azuredatastudio"; 24 - version = "1.17.1"; 69 + version = "1.33.0"; 70 + 71 + desktopItems = [ desktopItem urlHandlerDesktopItem ]; 25 72 26 73 src = fetchurl { 27 - url = "https://azuredatastudiobuilds.blob.core.windows.net/releases/${version}/azuredatastudio-linux-${version}.tar.gz"; 28 - sha256 = "0px9n9vyjvyddca4x7d0zindd0dim7350vkjg5dd0506fm8dc38k"; 74 + name = "${pname}-${version}.tar.gz"; 75 + url = "https://azuredatastudio-update.azurewebsites.net/${version}/linux-x64/stable"; 76 + sha256 = "0593xs44ryfyxy0hc31hdbj706q16h58jb0qyfyncn7ngybm3423"; 29 77 }; 30 78 31 79 nativeBuildInputs = [ 32 80 makeWrapper 81 + copyDesktopItems 33 82 ]; 34 83 35 84 buildInputs = [ ··· 38 87 at-spi2-atk 39 88 ]; 40 89 41 - dontInstall = true; 90 + installPhase = '' 91 + runHook preInstall 92 + 93 + mkdir -p $out/share/pixmaps 94 + cp ${targetPath}/resources/app/resources/linux/code.png $out/share/pixmaps/azuredatastudio.png 95 + 96 + runHook postInstall 97 + ''; 42 98 43 99 # change this to azuredatastudio-insiders for insiders releases 44 100 edition = "azuredatastudio"; ··· 60 116 ]; 61 117 62 118 # this will most likely need to be updated when azuredatastudio's version changes 63 - sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/2.0.0-release.56"; 119 + sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/3.0.0-release.139"; 64 120 65 121 rpath = lib.concatStringsSep ":" [ 66 122 atomEnv.libPath ··· 71 127 at-spi2-atk 72 128 stdenv.cc.cc.lib 73 129 libkrb5 130 + libdrm 131 + libxkbcommon 132 + mesa 133 + xorg.libxshmfence 74 134 ] 75 135 ) 76 136 targetPath ··· 111 171 description = "A data management tool that enables working with SQL Server, Azure SQL DB and SQL DW"; 112 172 homepage = "https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio"; 113 173 license = lib.licenses.unfreeRedistributable; 174 + platforms = [ "x86_64-linux" ]; 114 175 }; 115 176 }