mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
azuredatastudio: 1.17.1 -> 1.33.0 (#143078)
This commit is contained in:
parent
df56e761d6
commit
7f2b8a3beb
@ -1,9 +1,12 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, copyDesktopItems
|
||||||
|
, makeDesktopItem
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, libuuid
|
, libuuid
|
||||||
, libunwind
|
, libunwind
|
||||||
|
, libxkbcommon
|
||||||
, icu
|
, icu
|
||||||
, openssl
|
, openssl
|
||||||
, zlib
|
, zlib
|
||||||
@ -13,23 +16,69 @@
|
|||||||
, gnutar
|
, gnutar
|
||||||
, atomEnv
|
, atomEnv
|
||||||
, libkrb5
|
, libkrb5
|
||||||
|
, libdrm
|
||||||
|
, mesa
|
||||||
|
, xorg
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# from justinwoo/azuredatastudio-nix
|
# from justinwoo/azuredatastudio-nix
|
||||||
# https://github.com/justinwoo/azuredatastudio-nix/blob/537c48aa3981cd1a82d5d6e508ab7e7393b3d7c8/default.nix
|
# https://github.com/justinwoo/azuredatastudio-nix/blob/537c48aa3981cd1a82d5d6e508ab7e7393b3d7c8/default.nix
|
||||||
|
|
||||||
|
let
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = "azuredatastudio";
|
||||||
|
desktopName = "Azure Data Studio";
|
||||||
|
comment = "Data Management Tool that enables you to work with SQL Server, Azure SQL DB and SQL DW from Windows, macOS and Linux.";
|
||||||
|
genericName = "Text Editor";
|
||||||
|
exec = "azuredatastudio --no-sandbox --unity-launch %F";
|
||||||
|
icon = "azuredatastudio";
|
||||||
|
startupNotify = "true";
|
||||||
|
categories = "Utility;TextEditor;Development;IDE;";
|
||||||
|
mimeType = "text/plain;inode/directory;application/x-azuredatastudio-workspace;";
|
||||||
|
extraEntries = ''
|
||||||
|
StartupWMClass=azuredatastudio
|
||||||
|
Actions=new-empty-window;
|
||||||
|
Keywords=azuredatastudio;
|
||||||
|
|
||||||
|
[Desktop Action new-empty-window]
|
||||||
|
Name=New Empty Window
|
||||||
|
Exec=azuredatastudio --no-sandbox --new-window %F
|
||||||
|
Icon=azuredatastudio
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
urlHandlerDesktopItem = makeDesktopItem {
|
||||||
|
name = "azuredatastudio-url-handler";
|
||||||
|
desktopName = "Azure Data Studio - URL Handler";
|
||||||
|
comment = "Azure Data Studio";
|
||||||
|
genericName = "Text Editor";
|
||||||
|
exec = "azuredatastudio --no-sandbox --open-url %U";
|
||||||
|
icon = "azuredatastudio";
|
||||||
|
startupNotify = "true";
|
||||||
|
categories = "Utility;TextEditor;Development;IDE;";
|
||||||
|
mimeType = "x-scheme-handler/azuredatastudio;";
|
||||||
|
extraEntries = ''
|
||||||
|
NoDisplay=true
|
||||||
|
Keywords=azuredatastudio;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
pname = "azuredatastudio";
|
pname = "azuredatastudio";
|
||||||
version = "1.17.1";
|
version = "1.33.0";
|
||||||
|
|
||||||
|
desktopItems = [ desktopItem urlHandlerDesktopItem ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://azuredatastudiobuilds.blob.core.windows.net/releases/${version}/azuredatastudio-linux-${version}.tar.gz";
|
name = "${pname}-${version}.tar.gz";
|
||||||
sha256 = "0px9n9vyjvyddca4x7d0zindd0dim7350vkjg5dd0506fm8dc38k";
|
url = "https://azuredatastudio-update.azurewebsites.net/${version}/linux-x64/stable";
|
||||||
|
sha256 = "0593xs44ryfyxy0hc31hdbj706q16h58jb0qyfyncn7ngybm3423";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
copyDesktopItems
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -38,7 +87,14 @@ stdenv.mkDerivation rec {
|
|||||||
at-spi2-atk
|
at-spi2-atk
|
||||||
];
|
];
|
||||||
|
|
||||||
dontInstall = true;
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/share/pixmaps
|
||||||
|
cp ${targetPath}/resources/app/resources/linux/code.png $out/share/pixmaps/azuredatastudio.png
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
# change this to azuredatastudio-insiders for insiders releases
|
# change this to azuredatastudio-insiders for insiders releases
|
||||||
edition = "azuredatastudio";
|
edition = "azuredatastudio";
|
||||||
@ -60,7 +116,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# this will most likely need to be updated when azuredatastudio's version changes
|
# this will most likely need to be updated when azuredatastudio's version changes
|
||||||
sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/2.0.0-release.56";
|
sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/3.0.0-release.139";
|
||||||
|
|
||||||
rpath = lib.concatStringsSep ":" [
|
rpath = lib.concatStringsSep ":" [
|
||||||
atomEnv.libPath
|
atomEnv.libPath
|
||||||
@ -71,6 +127,10 @@ stdenv.mkDerivation rec {
|
|||||||
at-spi2-atk
|
at-spi2-atk
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
libkrb5
|
libkrb5
|
||||||
|
libdrm
|
||||||
|
libxkbcommon
|
||||||
|
mesa
|
||||||
|
xorg.libxshmfence
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
targetPath
|
targetPath
|
||||||
@ -111,5 +171,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "A data management tool that enables working with SQL Server, Azure SQL DB and SQL DW";
|
description = "A data management tool that enables working with SQL Server, Azure SQL DB and SQL DW";
|
||||||
homepage = "https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio";
|
homepage = "https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio";
|
||||||
license = lib.licenses.unfreeRedistributable;
|
license = lib.licenses.unfreeRedistributable;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user