Skip to content

Commit ddf8090

Browse files
Merge master into staging-next
2 parents b6ba3ca + f71ccdc commit ddf8090

File tree

44 files changed

+577
-607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+577
-607
lines changed

lib/systems/default.nix

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -352,21 +352,9 @@ let
352352
else
353353
null;
354354

355-
# Remove before 25.05
356-
androidSdkVersion =
357-
if (args ? sdkVer && !args ? androidSdkVersion) then
358-
throw "For android `sdkVer` has been renamed to `androidSdkVersion`"
359-
else if (args ? androidSdkVersion) then
360-
args.androidSdkVersion
361-
else
362-
null;
363-
androidNdkVersion =
364-
if (args ? ndkVer && !args ? androidNdkVersion) then
365-
throw "For android `ndkVer` has been renamed to `androidNdkVersion`"
366-
else if (args ? androidSdkVersion) then
367-
args.androidNdkVersion
368-
else
369-
null;
355+
# Handle Android SDK and NDK versions.
356+
androidSdkVersion = args.androidSdkVersion or null;
357+
androidNdkVersion = args.androidNdkVersion or null;
370358
}
371359
// (
372360
let

pkgs/applications/editors/vscode/extensions/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4346,8 +4346,8 @@ let
43464346
mktplcRef = {
43474347
name = "metals";
43484348
publisher = "scalameta";
4349-
version = "1.49.0";
4350-
hash = "sha256-/vzQojojvEz0KLebFCE3q4ptqPm40s4UgwxUAwMx8zs=";
4349+
version = "1.50.0";
4350+
hash = "sha256-vMO1u8w4uQc0mvgB3az4G+QnwRwsz5d1+LpDGEShyDw=";
43514351
};
43524352
meta = {
43534353
license = lib.licenses.asl20;
@@ -5721,8 +5721,8 @@ let
57215721
mktplcRef = {
57225722
name = "vscode-zig";
57235723
publisher = "ziglang";
5724-
version = "0.6.8";
5725-
hash = "sha256-u4Vd2YP47ccpz4ZMOGDN1eFS8qiC7nGIbo6YtvxNHFM=";
5724+
version = "0.6.9";
5725+
hash = "sha256-R18NnnsYVLmCNdGU0plIYn2MKrlSedfJoXH/amxKKaY=";
57265726
};
57275727
meta = {
57285728
changelog = "https://marketplace.visualstudio.com/items/ziglang.vscode-zig/changelog";

pkgs/applications/editors/vscode/extensions/ms-dotnettools.csdevkit/default.nix

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
libz,
99
glibc,
1010
libxml2,
11+
libkrb5,
12+
patchelf,
1113
}:
1214
let
1315
extInfo = (
@@ -41,16 +43,18 @@ vscode-utils.buildVscodeMarketplaceExtension {
4143
};
4244
sourceRoot = "extension"; # This has more than one folder.
4345

44-
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
46+
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [
47+
autoPatchelfHook
48+
patchelf
49+
];
4550
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
46-
(lib.getLib stdenv.cc.cc) # libstdc++.so.6
4751
(lib.getLib glibc) # libgcc_s.so.1
48-
(lib.getLib libxml2) # libxml2.so.2
49-
];
50-
runtimeDependencies = lib.optionals stdenv.hostPlatform.isLinux [
51-
(lib.getLib openssl) # libopenssl.so.3
5252
(lib.getLib icu) # libicui18n.so libicuuc.so
53+
(lib.getLib libkrb5) # libgssapi_krb5.so
54+
(lib.getLib libxml2) # libxml2.so.2
5355
(lib.getLib libz) # libz.so.1
56+
(lib.getLib openssl) # libopenssl.so.3
57+
(lib.getLib stdenv.cc.cc) # libstdc++.so.6
5458
];
5559

5660
postPatch = ''
@@ -64,22 +68,63 @@ vscode-utils.buildVscodeMarketplaceExtension {
6468

6569
preFixup = ''
6670
(
71+
set -euo pipefail
6772
shopt -s globstar
6873
shopt -s dotglob
74+
75+
# Fix all binaries.
6976
for file in "$out"/**/*; do
70-
if [[ ! -f "$file" || "$file" == *.so || "$file" == *.dylib ]] ||
77+
if [[ ! -f "$file" || "$file" == *.so || "$file" == *.a || "$file" == *.dylib ]] ||
7178
(! isELF "$file" && ! isMachO "$file"); then
7279
continue
7380
fi
7481
7582
echo Making "$file" executable...
7683
chmod +x "$file"
84+
85+
${lib.optionalString stdenv.hostPlatform.isLinux ''
86+
# Add .NET deps if it is an apphost.
87+
if grep 'You must install .NET to run this application.' "$file" > /dev/null; then
88+
echo "Adding .NET needed libraries to: $file"
89+
patchelf \
90+
--add-needed libicui18n.so \
91+
--add-needed libicuuc.so \
92+
--add-needed libgssapi_krb5.so \
93+
--add-needed libssl.so \
94+
"$file"
95+
fi
96+
''}
7797
done
98+
99+
${lib.optionalString stdenv.hostPlatform.isLinux ''
100+
# Add the ICU libraries as needed to the globalization DLLs.
101+
for file in "$out"/**/{libcoreclr.so,*System.Globalization.Native.so}; do
102+
echo "Adding ICU libraries to: $file"
103+
patchelf \
104+
--add-needed libicui18n.so \
105+
--add-needed libicuuc.so \
106+
"$file"
107+
done
108+
109+
# Add the Kerberos libraries as needed to the native security DLL.
110+
for file in "$out"/**/*System.Net.Security.Native.so; do
111+
echo "Adding Kerberos libraries to: $file"
112+
patchelf \
113+
--add-needed libgssapi_krb5.so \
114+
"$file"
115+
done
116+
117+
# Add the OpenSSL libraries as needed to the OpenSSL native security DLL.
118+
for file in "$out"/**/*System.Security.Cryptography.Native.OpenSsl.so; do
119+
echo "Adding OpenSSL libraries to: $file"
120+
patchelf \
121+
--add-needed libssl.so \
122+
"$file"
123+
done
124+
''}
78125
)
79126
'';
80127

81-
passthru.updateScript = ./update.sh;
82-
83128
meta = {
84129
changelog = "https://marketplace.visualstudio.com/items/ms-dotnettools.csdevkit/changelog";
85130
description = "Official Visual Studio Code extension for C# from Microsoft";

pkgs/applications/editors/vscode/extensions/ms-dotnettools.csdevkit/update.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

pkgs/applications/editors/vscode/extensions/ms-dotnettools.csharp/default.nix

Lines changed: 69 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
openssl,
88
libz,
99
glibc,
10+
libkrb5,
1011
coreutils,
12+
jq,
13+
patchelf,
1114
}:
1215
let
1316
extInfo = (
@@ -40,16 +43,18 @@ vscode-utils.buildVscodeMarketplaceExtension {
4043
inherit (extInfo) hash arch;
4144
};
4245

43-
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
46+
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [
47+
autoPatchelfHook
48+
jq
49+
patchelf
50+
];
4451
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
45-
(lib.getLib stdenv.cc.cc) # libstdc++.so.6
4652
(lib.getLib glibc) # libgcc_s.so.1
47-
(lib.getLib libz) # libz.so.1
48-
];
49-
runtimeDependencies = lib.optionals stdenv.hostPlatform.isLinux [
50-
(lib.getLib openssl) # libopenssl.so.3
5153
(lib.getLib icu) # libicui18n.so libicuuc.so
54+
(lib.getLib libkrb5) # libgssapi_krb5.so
5255
(lib.getLib libz) # libz.so.1
56+
(lib.getLib openssl) # libopenssl.so.3
57+
(lib.getLib stdenv.cc.cc) # libstdc++.so.6
5358
];
5459

5560
postPatch = ''
@@ -59,17 +64,73 @@ vscode-utils.buildVscodeMarketplaceExtension {
5964

6065
preFixup = ''
6166
(
67+
set -euo pipefail
6268
shopt -s globstar
6369
shopt -s dotglob
70+
71+
# Fix all binaries.
6472
for file in "$out"/**/*; do
65-
if [[ ! -f "$file" || "$file" == *.so || "$file" == *.dylib ]] ||
73+
if [[ ! -f "$file" || "$file" == *.so || "$file" == *.a || "$file" == *.dylib ]] ||
6674
(! isELF "$file" && ! isMachO "$file"); then
6775
continue
6876
fi
6977
7078
echo Making "$file" executable...
7179
chmod +x "$file"
80+
81+
${lib.optionalString stdenv.hostPlatform.isLinux ''
82+
# Add .NET deps if it is an apphost.
83+
if grep 'You must install .NET to run this application.' "$file" > /dev/null; then
84+
echo "Adding .NET needed libraries to: $file"
85+
patchelf \
86+
--add-needed libicui18n.so \
87+
--add-needed libicuuc.so \
88+
--add-needed libgssapi_krb5.so \
89+
--add-needed libssl.so \
90+
"$file"
91+
fi
92+
''}
7293
done
94+
95+
${lib.optionalString stdenv.hostPlatform.isLinux ''
96+
# Add the ICU libraries as needed to the globalization DLLs.
97+
for file in "$out"/**/{libcoreclr.so,*System.Globalization.Native.so}; do
98+
echo "Adding ICU libraries to: $file"
99+
patchelf \
100+
--add-needed libicui18n.so \
101+
--add-needed libicuuc.so \
102+
"$file"
103+
done
104+
105+
# Add the Kerberos libraries as needed to the native security DLL.
106+
for file in "$out"/**/*System.Net.Security.Native.so; do
107+
echo "Adding Kerberos libraries to: $file"
108+
patchelf \
109+
--add-needed libgssapi_krb5.so \
110+
"$file"
111+
done
112+
113+
# Add the OpenSSL libraries as needed to the OpenSSL native security DLL.
114+
for file in "$out"/**/*System.Security.Cryptography.Native.OpenSsl.so; do
115+
echo "Adding OpenSSL libraries to: $file"
116+
patchelf \
117+
--add-needed libssl.so \
118+
"$file"
119+
done
120+
121+
# Add the needed binaries to the apphost binaries.
122+
for file in $(jq -r '.runtimeDependencies | map(select(.binaries != null) | .installPath + "/" + .binaries[]) | sort | unique | map(sub("/\\./"; "/")) | .[]' < "$out"/share/vscode/extensions/ms-dotnettools.csharp/package.json); do
123+
[ -f "$out"/share/vscode/extensions/ms-dotnettools.csharp/"$file" ] || continue
124+
125+
echo "Adding .NET needed libraries to: $out/share/vscode/extensions/ms-dotnettools.csharp/$file"
126+
patchelf \
127+
--add-needed libicui18n.so \
128+
--add-needed libicuuc.so \
129+
--add-needed libgssapi_krb5.so \
130+
--add-needed libssl.so \
131+
"$out"/share/vscode/extensions/ms-dotnettools.csharp/"$file"
132+
done
133+
''}
73134
)
74135
'';
75136

@@ -78,7 +139,7 @@ vscode-utils.buildVscodeMarketplaceExtension {
78139
meta = {
79140
description = "Official C# support for Visual Studio Code";
80141
homepage = "https://github.com/dotnet/vscode-csharp";
81-
license = lib.licenses.mit;
142+
license = lib.licenses.unfree;
82143
maintainers = with lib.maintainers; [ ggg ];
83144
platforms = [
84145
"x86_64-linux"

pkgs/applications/editors/vscode/extensions/ms-python.vscode-pylance/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ vscode-utils.buildVscodeMarketplaceExtension {
88
mktplcRef = {
99
name = "vscode-pylance";
1010
publisher = "MS-python";
11-
version = "2025.4.1";
12-
hash = "sha256-XZ00HOH+7onP1li6nBwjBIRc1Zy5SNvrT1JhnzJTr1E=";
11+
version = "2025.5.1";
12+
hash = "sha256-6HnWqD6wTRPjkHYN6HaPHJbbK0wWk/boBtqBhuR7W7U=";
1313
};
1414

1515
buildInputs = [ pyright ];

pkgs/by-name/at/atac/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
}:
88
rustPlatform.buildRustPackage rec {
99
pname = "atac";
10-
version = "0.19.0";
10+
version = "0.20.0";
1111

1212
src = fetchFromGitHub {
1313
owner = "Julien-cpsn";
1414
repo = "ATAC";
1515
rev = "v${version}";
16-
hash = "sha256-7y4DDoGguHfU4JxnMyRmjrqJ4gg76C9WSmZ8ey+Mitg=";
16+
hash = "sha256-Hw93XI//d+ubVZvNPpq6z2P5XLSzw/EqzrrifSEmWUM=";
1717
};
1818

1919
useFetchCargoVendor = true;
20-
cargoHash = "sha256-sohEi3ARZlkNTQTpPVpQ1j/IyVP4rbBSdo6cpJdY1I4=";
20+
cargoHash = "sha256-OrTPHfMFF5A9SGBcjcNIOC/JGLtkJzSk9EEVcv6NwOs=";
2121

2222
nativeBuildInputs = [ pkg-config ];
2323

pkgs/by-name/az/azure-storage-azcopy/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66

77
buildGoModule rec {
88
pname = "azure-storage-azcopy";
9-
version = "10.29.0";
9+
version = "10.29.2";
1010

1111
src = fetchFromGitHub {
1212
owner = "Azure";
1313
repo = "azure-storage-azcopy";
1414
tag = "v${version}";
15-
hash = "sha256-PkgIMSXWldorwmMri1tASnP9bjXrWFbeguMFXoPEYfw=";
15+
hash = "sha256-wLErYkiN5V6aZx6Vztr3Gk5XB+aOo9de5QjEbwDLBXg=";
1616
};
1717

1818
subPackages = [ "." ];
1919

20-
vendorHash = "sha256-w8ux6W2cPjz5cORP/KU8Tw8rUe/eGVMeK5xIM3ZSa+c=";
20+
vendorHash = "sha256-Aq38kpgQ1NQQVkF0hjMLzvK8HvxfzYARbeWmsc54Ldg=";
2121

2222
doCheck = false;
2323

pkgs/by-name/cl/clippy-sarif/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
}:
99
rustPlatform.buildRustPackage rec {
1010
pname = "clippy-sarif";
11-
version = "0.7.0";
11+
version = "0.8.0";
1212

1313
src = fetchCrate {
1414
inherit pname version;
15-
hash = "sha256-J2QtM6lrkOXQO3ZARJWIgjkj0pLzmL9id5b2JNkGeiA=";
15+
hash = "sha256-pqu7jIKksjn52benebICQEhgCW59MX+RRTcHm2ufjWE=";
1616
};
1717

1818
useFetchCargoVendor = true;
19-
cargoHash = "sha256-ExH4asrM9MIW1/oslU64LnalEAvmTFuOmersrQM0Wjk=";
19+
cargoHash = "sha256-wdJTQjDCmbJVPEUV6DENb2UegAc1ET4iSw3SzmlGPnA=";
2020

2121
nativeInstallCheckInputs = [ versionCheckHook ];
2222
doInstallCheck = true;

0 commit comments

Comments
 (0)