-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteel-language-server.nix
54 lines (49 loc) · 1.37 KB
/
steel-language-server.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
stdenv,
lib,
callPackage,
rustPlatform,
fetchFromGitHub,
darwin,
makeWrapper,
openssl,
pkg-config,
steel ? callPackage ./steel.nix {},
}:
rustPlatform.buildRustPackage {
pname = "steel-language-server";
version = "0-unstable-2024-12-29";
src = fetchFromGitHub {
owner = "mattwparas";
repo = "steel";
rev = "01d4637fd5efbeb72800ff81eb8d0912166c9b38";
hash = "sha256-n2OMJnKXbnAKlgKiRdTgKWZvo7pnfAU5K0oqbsPSXyo=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-M/fC8ZViRUjI36xm3ULxD+qPdkfgyMLDXNpOt16iriY=";
nativeBuildInputs = [makeWrapper openssl pkg-config] ++ lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs =
[steel]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
];
cargoBuildFlags = ["--package" "steel-language-server"];
doCheck = false;
postFixup =
/*
bash
*/
''
wrapProgram "$out/bin/steel-language-server" \
--set STEEL_HOME "${steel}/share" \
'';
meta = with lib; {
description = "An embeddable and extensible scheme dialect built in Rust";
mainProgram = "steel-language-server";
homepage = "https://github.com/mattwparas/steel";
license = licenses.apsl20;
platforms = platforms.all;
};
}