Skip to content

Commit 779c961

Browse files
committedMar 22, 2025
copilot-language-server: Fix dynamically linked error
1 parent 712e139 commit 779c961

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed
 

‎pkgs/by-name/co/copilot-language-server/package.nix

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
lib,
3-
stdenvNoCC,
3+
stdenv,
44
fetchzip,
5+
autoPatchelfHook,
56
nix-update-script,
7+
versionCheckHook,
68
}:
79

810
let
@@ -13,20 +15,18 @@ let
1315
x86_64-darwin = "x64";
1416
x86_64-linux = "x64";
1517
}
16-
."${stdenvNoCC.hostPlatform.system}"
17-
or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}");
18+
."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
1819
os =
1920
{
2021
aarch64-darwin = "darwin";
2122
aarch64-linux = "linux";
2223
x86_64-darwin = "darwin";
2324
x86_64-linux = "linux";
2425
}
25-
."${stdenvNoCC.hostPlatform.system}"
26-
or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}");
26+
."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
2727
in
2828

29-
stdenvNoCC.mkDerivation (finalAttrs: {
29+
stdenv.mkDerivation (finalAttrs: {
3030
pname = "copilot-language-server";
3131
version = "1.280.0";
3232

@@ -37,6 +37,17 @@ stdenvNoCC.mkDerivation (finalAttrs: {
3737
};
3838

3939
npmDepsHash = "sha256-PLX/mN7xu8gMh2BkkyTncP3+rJ3nBmX+pHxl0ONXbe4=";
40+
41+
nativeBuildInputs = [
42+
autoPatchelfHook
43+
versionCheckHook
44+
];
45+
buildInputs = [ stdenv.cc.cc.lib ];
46+
47+
doCheck = true;
48+
checkFlags = [ "--version" ];
49+
versionExe = "./${os}-${arch}/copilot-language-server";
50+
4051
installPhase = ''
4152
runHook preInstall
4253

0 commit comments

Comments
 (0)
Failed to load comments.