-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathshell.nix
More file actions
47 lines (42 loc) · 898 Bytes
/
shell.nix
File metadata and controls
47 lines (42 loc) · 898 Bytes
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
{pkgs, ...}: let
# Manifest via Cargo.toml
manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
in
pkgs.stdenv.mkDerivation {
name = "${manifest.name}-dev";
# Compile time dependencies
nativeBuildInputs = with pkgs; [
# Hail the Nix
nixd
statix
deadnix
alejandra
# Rust
rustc
cargo
rustfmt
clippy
rust-analyzer
cargo-watch
# Other compile time dependencies
openssl
# Gnome related
gtk4
meson
ninja
parted
gettext
appstream
pkg-config
gdk-pixbuf
libadwaita
gnome-desktop
wrapGAppsHook4
desktop-file-utils
gobject-introspection
rustPlatform.bindgenHook
];
# Set Environment Variables
RUST_BACKTRACE = "full";
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}