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 { stdenv 2 , lib 3 , fetchurl 4 , makeWrapper 5 , libuuid 6 , libunwind 7 , icu 8 , openssl 9 , zlib ··· 13 , gnutar 14 , atomEnv 15 , libkrb5 16 }: 17 18 # from justinwoo/azuredatastudio-nix 19 # https://github.com/justinwoo/azuredatastudio-nix/blob/537c48aa3981cd1a82d5d6e508ab7e7393b3d7c8/default.nix 20 21 stdenv.mkDerivation rec { 22 23 pname = "azuredatastudio"; 24 - version = "1.17.1"; 25 26 src = fetchurl { 27 - url = "https://azuredatastudiobuilds.blob.core.windows.net/releases/${version}/azuredatastudio-linux-${version}.tar.gz"; 28 - sha256 = "0px9n9vyjvyddca4x7d0zindd0dim7350vkjg5dd0506fm8dc38k"; 29 }; 30 31 nativeBuildInputs = [ 32 makeWrapper 33 ]; 34 35 buildInputs = [ ··· 38 at-spi2-atk 39 ]; 40 41 - dontInstall = true; 42 43 # change this to azuredatastudio-insiders for insiders releases 44 edition = "azuredatastudio"; ··· 60 ]; 61 62 # 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"; 64 65 rpath = lib.concatStringsSep ":" [ 66 atomEnv.libPath ··· 71 at-spi2-atk 72 stdenv.cc.cc.lib 73 libkrb5 74 ] 75 ) 76 targetPath ··· 111 description = "A data management tool that enables working with SQL Server, Azure SQL DB and SQL DW"; 112 homepage = "https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio"; 113 license = lib.licenses.unfreeRedistributable; 114 }; 115 }
··· 1 { stdenv 2 , lib 3 , fetchurl 4 + , copyDesktopItems 5 + , makeDesktopItem 6 , makeWrapper 7 , libuuid 8 , libunwind 9 + , libxkbcommon 10 , icu 11 , openssl 12 , zlib ··· 16 , gnutar 17 , atomEnv 18 , libkrb5 19 + , libdrm 20 + , mesa 21 + , xorg 22 }: 23 24 # from justinwoo/azuredatastudio-nix 25 # https://github.com/justinwoo/azuredatastudio-nix/blob/537c48aa3981cd1a82d5d6e508ab7e7393b3d7c8/default.nix 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 66 stdenv.mkDerivation rec { 67 68 pname = "azuredatastudio"; 69 + version = "1.33.0"; 70 + 71 + desktopItems = [ desktopItem urlHandlerDesktopItem ]; 72 73 src = fetchurl { 74 + name = "${pname}-${version}.tar.gz"; 75 + url = "https://azuredatastudio-update.azurewebsites.net/${version}/linux-x64/stable"; 76 + sha256 = "0593xs44ryfyxy0hc31hdbj706q16h58jb0qyfyncn7ngybm3423"; 77 }; 78 79 nativeBuildInputs = [ 80 makeWrapper 81 + copyDesktopItems 82 ]; 83 84 buildInputs = [ ··· 87 at-spi2-atk 88 ]; 89 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 + ''; 98 99 # change this to azuredatastudio-insiders for insiders releases 100 edition = "azuredatastudio"; ··· 116 ]; 117 118 # this will most likely need to be updated when azuredatastudio's version changes 119 + sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/3.0.0-release.139"; 120 121 rpath = lib.concatStringsSep ":" [ 122 atomEnv.libPath ··· 127 at-spi2-atk 128 stdenv.cc.cc.lib 129 libkrb5 130 + libdrm 131 + libxkbcommon 132 + mesa 133 + xorg.libxshmfence 134 ] 135 ) 136 targetPath ··· 171 description = "A data management tool that enables working with SQL Server, Azure SQL DB and SQL DW"; 172 homepage = "https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio"; 173 license = lib.licenses.unfreeRedistributable; 174 + platforms = [ "x86_64-linux" ]; 175 }; 176 }