-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
59 lines (58 loc) · 1.2 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
{
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
...
}: let
infrastructureVersion =
if (self ? shortRev)
then self.shortRev
else "dev";
in
{
overlay = final: prev: let
pkgs = nixpkgs.legacyPackages.${prev.system};
in rec {};
}
// flake-utils.lib.eachDefaultSystem
(system: let
pkgs = import nixpkgs {
overlays = [self.overlay];
inherit system;
};
devDeps = with pkgs;
[
nodejs
nodePackages.yarn
# x11-xkb-utils
# x11-apps
# clang
# libdbus-1-dev
# # libgtk2.0-dev
# libnotify-dev
# libgconf2-dev
# libasound2-dev
# libcap-dev
# libcups2-dev
# libxtst-dev
# libxss1
# libnss3-dev
]
++ lib.optionals pkgs.stdenv.isLinux [
xvfb-run
];
in rec {
# `nix develop`
devShell = pkgs.mkShell {
buildInputs = devDeps;
shellHook = ''
export DISPLAY=:9.0
'';
};
});
}