File tree 5 files changed +72
-6
lines changed
5 files changed +72
-6
lines changed Original file line number Diff line number Diff line change 10
10
inputs . nixpkgs . follows = "nixpkgs" ;
11
11
inputs . systems . follows = "systems" ;
12
12
} ;
13
+
14
+ hyprland-qt-support = {
15
+ url = "github:hyprwm/hyprland-qt-support" ;
16
+ inputs . nixpkgs . follows = "nixpkgs" ;
17
+ inputs . systems . follows = "systems" ;
18
+ } ;
13
19
} ;
14
20
15
21
outputs = {
34
40
default = self . packages . ${ system } . hyprland-qtutils ;
35
41
inherit ( pkgsFor . ${ system } ) hyprland-qtutils ;
36
42
} ) ;
43
+
44
+ devShells = eachSystem ( system : {
45
+ default = import ./nix/shell.nix {
46
+ pkgs = pkgsFor . ${ system } ;
47
+ inherit ( pkgsFor . ${ system } ) hyprland-qtutils ;
48
+ } ;
49
+ } ) ;
37
50
} ;
38
51
}
Original file line number Diff line number Diff line change 4
4
cmake ,
5
5
pkg-config ,
6
6
hyprutils ,
7
+ hyprland-qt-support ,
7
8
pciutils ,
8
9
qt6 ,
9
10
version ? "0" ,
31
32
32
33
buildInputs = [
33
34
hyprutils
35
+ hyprland-qt-support
34
36
qt6 . qtbase
35
37
qt6 . qtsvg
36
38
qt6 . qtwayland
Original file line number Diff line number Diff line change 15
15
16
16
hyprland-qtutils = lib . composeManyExtensions [
17
17
inputs . hyprutils . overlays . default
18
+ inputs . hyprland-qt-support . overlays . default
18
19
( final : prev : {
19
20
hyprland-qtutils = final . callPackage ./. {
20
21
stdenv = final . gcc14Stdenv ;
Original file line number Diff line number Diff line change
1
+ {
2
+ pkgs ? import <nixpkgs> { } ,
3
+ hyprland-qtutils ? pkgs . callPackage ./default.nix { } ,
4
+ ...
5
+ } : pkgs . mkShell {
6
+ inputsFrom = [ hyprland-qtutils ] ;
7
+ nativeBuildInputs = [ pkgs . clang-tools pkgs . pciutils ] ;
8
+
9
+ shellHook = let
10
+ inherit ( pkgs . lib . strings ) concatMapStringsSep ;
11
+ qtLibPath = f : concatMapStringsSep ":" f ( with pkgs . qt6 ; [
12
+ qtbase
13
+ qtdeclarative
14
+ qtwayland
15
+ pkgs . hyprland-qt-support
16
+ ] ) ;
17
+ in ''
18
+ # Add Qt-related environment variables.
19
+ export QT_PLUGIN_PATH=${ qtLibPath ( p : "${ p } /lib/qt-6/plugins" ) }
20
+ export QML2_IMPORT_PATH=${ qtLibPath ( p : "${ p } /lib/qt-6/qml" ) }
21
+
22
+ # Generate compile_commands.json
23
+ CMAKE_EXPORT_COMPILE_COMMANDS=1 cmake -S . -B ./build
24
+ ln -s build/compile_commands.json .
25
+ '' ;
26
+ }
You can’t perform that action at this time.
0 commit comments