-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
58 lines (58 loc) · 1.45 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
50
51
52
53
54
55
56
57
58
{ sources ? import ./npins }:
let
system = builtins.currentSystem;
pkgs = import sources.nixpkgs { config = { allowUnfree = true; }; overlays = [ ]; };
# extensions = (import sources.nix-vscode-extensions).extensions.${system};
rustcodium =
let
inherit (pkgs) vscode-with-extensions vscodium;
rustExtensions = builtins.attrValues {
inherit (pkgs.vscode-extensions.jnoortheen) nix-ide;
inherit (pkgs.vscode-extensions.rust-lang) rust-analyzer;
inherit (pkgs.vscode-extensions.vadimcn) vscode-lldb;
inherit (pkgs.vscode-extensions.ms-vscode) cpptools-extension-pack;
inherit (pkgs.vscode-extensions.ms-vscode) cpptools;
inherit (pkgs.vscode-extensions.davidlday) languagetool-linter;
inherit (pkgs.vscode-extensions.llvm-vs-code-extensions) vscode-clangd;
};
in
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = rustExtensions;
});
in
pkgs.mkShell rec {
packages = with pkgs; [
rustcodium
];
nativeBuildInputs = with pkgs; [
#gradle
#gcc
#g++
libtool
rust-bindgen
cmake
cargo
rustc
rustfmt
rustPackages.clippy
pkgs.rustPlatform.bindgenHook
clang-tools
];
buildInputs = with pkgs; [
pkg-config
alsa-lib
jack2
fontconfig
wayland
libxkbcommon
libGL
#faust
llvm
gnuplot
valgrind
rust-script
libxml2
];
#LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
}