Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
56 lines (54 loc) · 1.4 KB
/
Copy pathflake.nix
File metadata and controls
56 lines (54 loc) · 1.4 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
{
description = "LedScribe C++ development shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
formatter = forAllSystems (system: (import nixpkgs { inherit system; }).nixfmt);
devShells = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
llvm = pkgs.llvmPackages;
qt = pkgs.qt6;
qtModules = [
qt.qtbase
qt.qtwayland
pkgs.kdePackages.fcitx5-qt
];
in
{
default = pkgs.mkShell {
packages = [
llvm.clang
llvm.lld
llvm.llvm
pkgs.gdb
llvm.clang-tools
pkgs.cmake
pkgs.ninja
pkgs.gnumake
pkgs.coreutils
pkgs.bear
pkgs.nixfmt
pkgs.libusb1
pkgs.pkg-config
];
nativeBuildInputs = [ qt.wrapQtAppsHook ];
buildInputs = qtModules;
# Locally built binaries are not wrapped by Nix's package fixup phase.
QT_PLUGIN_PATH = pkgs.lib.makeSearchPath qt.qtbase.qtPluginPrefix qtModules;
};
}
);
};
}