Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
112 lines (105 loc) · 2.47 KB
/
Copy pathflake.nix
File metadata and controls
112 lines (105 loc) · 2.47 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
description = "Development environment for quartz-syncer with E2E testing support";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
linuxLibraries = (
if pkgs.stdenv.isLinux then
with pkgs;
[
libdrm
alsa-lib
udev
libx11
libxcomposite
libxdamage
libxext
libxfixes
libxrandr
libxcb
libxcursor
libxi
libxrender
libxtst
libxscrnsaver
gtk3
gtk4
libGL
libgbm
fontconfig
freetype
libuuid
systemd
wayland
libnotify
libappindicator-gtk3
libdbusmenu
]
else
[ ]
);
libraries =
with pkgs;
[
stdenv.cc.cc.lib
zlib
glib
nss
nspr
atk
cups
dbus
dbus.lib
expat
libxkbcommon
pango
cairo
mesa
at-spi2-atk
at-spi2-core
curl
wget
]
++ linuxLibraries;
nix-ld-libraries = pkgs.lib.makeLibraryPath libraries;
in
{
devShells.default = pkgs.mkShell {
buildInputs =
with pkgs;
[
nodejs_24
git
python3
]
++ libraries;
NIX_LD_LIBRARY_PATH = nix-ld-libraries;
NIX_LD = pkgs.lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
shellHook = ''
echo "quartz-syncer development environment loaded"
echo "Node.js version: $(node --version)"
echo ""
echo "Run 'npm install' to install dependencies"
echo "Run 'npm test' to run unit tests"
echo "Run 'npx wdio run ./wdio.conf.mts' to run E2E tests"
'';
};
}
);
}