-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
37 lines (34 loc) · 848 Bytes
/
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
{
pkgs ? import <nixpkgs> { overlays = [ (import <bsuir-tex/nixpkgs>) ]; },
}:
with pkgs;
let
dotnetPkg = with dotnetCorePackages; combinePackages [ sdk_8_0 ];
dotnetDeps = [
xorg.libX11
xorg.libICE
xorg.libSM
fontconfig
];
in
mkShell rec {
name = "SD-1";
vscode-settings = writeText "settings.json" (
builtins.toJSON {
"dotnetAcquisitionExtension.sharedExistingDotnetPath" = DOTNET_ROOT;
}
);
packages = [
(texliveMedium.withPackages (_: with texlivePackages; [ bsuir-tex ]))
dotnetPkg
tex-fmt
inkscape-with-extensions
python312Packages.pygments
] ++ dotnetDeps;
LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath dotnetDeps;
DOTNET_ROOT = "${dotnetPkg}/dotnet";
shellHook = ''
mkdir .vscode &>/dev/null
cp --force ${vscode-settings} .vscode/settings.json
'';
}