-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
46 lines (42 loc) · 1.08 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
{
pkgs ? import <nixpkgs> { },
}:
let
rust_overlay = import (
builtins.fetchTarball {
url = "https://github.com/oxalica/rust-overlay/archive/74a3fb71b0cc67376ab9e7c31abcd68c813fc226.tar.gz";
sha256 = "sha256:1y308q8yxz8nkdw2gh626ay8am8c5w4jn0kfc37wiiqza0xp392s";
}
);
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rust = pkgs.rust-bin.nightly."2025-02-22".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";
}