-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
49 lines (45 loc) · 1.09 KB
/
shell.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
{
pkgs ? import <nixpkgs> { },
}:
let
rust_overlay = import (
builtins.fetchTarball {
url = "https://github.com/oxalica/rust-overlay/archive/aefb7017d710f150970299685e8d8b549d653649.tar.gz";
sha256 = "sha256:0bwxwmbg3jnyiadn6bjk6sx2as0l9slzvp0xkx16jjr8bl8z0sz7";
}
);
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rust = pkgs.rust-bin.nightly."2025-03-02".default.override {
extensions = [
"rust-src"
"rust-analyzer"
];
};
in
pkgs.mkShell {
buildInputs =
[
rust
]
++ (with pkgs; [
pkg-config
sccache
(gap.overrideAttrs (o: {
version = "4.13.1";
patches = [ ];
src = fetchurl {
url = "https://github.com/gap-system/gap/releases/download/v4.13.1/gap-4.13.1.tar.gz";
sha256 = "sha256-l5Tb26b7mY4KLQqoziH8iEitPT+cyZk7C44gvn4dvro=";
};
}))
(python3.withPackages (
p: with p; [
sympy
]
))
python312Packages.python-lsp-server
]);
RUST_BACKTRACE = 1;
RUSTC_WRAPPER = "sccache";
SCCACHE_SERVER_PORT = "54226";
}