-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
48 lines (43 loc) · 1.02 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
lib-path = let
xorg-deps = with pkgs.xorg; [
libX11
libXau
libXcursor
libXdmcp
libXrender
libxcb
];
qt-deps = with pkgs.libsForQt5; [
qtbase
qtsvg
];
in with pkgs; lib.makeLibraryPath ([
dbus
ffmpeg_4.lib
fontconfig
freetype
glib
libGL
libkrb5
libxkbcommon
stdenv.cc.cc
zlib
] ++ xorg-deps ++ qt-deps);
in
{
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell {
QT_DEBUG_PLUGINS = 1;
LD_LIBRARY_PATH = lib-path;
};
});
}