1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
lib ,
3
- stdenvNoCC ,
3
+ stdenv ,
4
4
fetchzip ,
5
+ autoPatchelfHook ,
5
6
nix-update-script ,
7
+ versionCheckHook ,
6
8
} :
7
9
8
10
let
13
15
x86_64-darwin = "x64" ;
14
16
x86_64-linux = "x64" ;
15
17
}
16
- . "${ stdenvNoCC . hostPlatform . system } "
17
- or ( throw "Unsupported system: ${ stdenvNoCC . hostPlatform . system } " ) ;
18
+ . "${ stdenv . hostPlatform . system } " or ( throw "Unsupported system: ${ stdenv . hostPlatform . system } " ) ;
18
19
os =
19
20
{
20
21
aarch64-darwin = "darwin" ;
21
22
aarch64-linux = "linux" ;
22
23
x86_64-darwin = "darwin" ;
23
24
x86_64-linux = "linux" ;
24
25
}
25
- . "${ stdenvNoCC . hostPlatform . system } "
26
- or ( throw "Unsupported system: ${ stdenvNoCC . hostPlatform . system } " ) ;
26
+ . "${ stdenv . hostPlatform . system } " or ( throw "Unsupported system: ${ stdenv . hostPlatform . system } " ) ;
27
27
in
28
28
29
- stdenvNoCC . mkDerivation ( finalAttrs : {
29
+ stdenv . mkDerivation ( finalAttrs : {
30
30
pname = "copilot-language-server" ;
31
31
version = "1.280.0" ;
32
32
@@ -37,6 +37,17 @@ stdenvNoCC.mkDerivation (finalAttrs: {
37
37
} ;
38
38
39
39
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
+
40
51
installPhase = ''
41
52
runHook preInstall
42
53
0 commit comments