-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathflake.nix
75 lines (73 loc) · 1.94 KB
/
flake.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
# main
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
# dev
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
, ...
} @ inputs:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = with inputs; [
fenix.overlays.default
];
};
aegis-gui-tauri = pkgs.callPackage ./nix/aegis-gui-tauri.nix { };
in
{
devShells.default = pkgs.mkShell {
name = "development-environment-aegis-gui-tauri";
WEBKIT_DISABLE_COMPOSITING_MODE = "1"; # essential in NVIDIA + compositor https://github.com/NixOS/nixpkgs/issues/212064#issuecomment-1400202079
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS";
packages = with pkgs;
[
(fenix.stable.withComponents [
"cargo"
"rustc"
"rustfmt"
"clippy"
"rust-src"
])
nodePackages.yarn
glib
dbus
cairo
atk
openssl
libsoup
pango
gdk-pixbuf
gtk3
harfbuzz
zlib
gcc
pkg-config
webkitgtk
appimagekit
cargo-tauri
nixpkgs-fmt
gsettings-desktop-schemas
sqlite
just
haskellPackages.udev
libudev-zero
];
};
packages.default = aegis-gui-tauri;
}
);
}