-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
48 lines (43 loc) · 1.22 KB
/
flake.nix
File metadata and controls
48 lines (43 loc) · 1.22 KB
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
{
description = "my project description";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, blender-bin, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
system = system;
};
libraries = with pkgs; [
rustc
cargo
rustfmt
rust-analyzer
clippy
nodejs
webkitgtk_4_1
pkg-config
libsoup_3
gtk3
webkitgtk_4_1
cairo
gdk-pixbuf
libsoup_3
gsettings-desktop-schemas
glib
];
in
{
devShell = pkgs.mkShell {
buildInputs = libraries;
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libraries}";
SHELL = "${pkgs.bashInteractive}/bin/bash";
WEBKIT_DISABLE_COMPOSITING_MODE=1;
# see: https://github.com/tauri-apps/tauri/issues/7354
shellHook = with pkgs; ''
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS;
'';
};
}
);
}