Skip to content

Commit 7d648d2

Browse files
committed
Pin qt6 package version to 6.6.3
Currently, this succesfully launches the program. Pinning qt seperatly allows the rest of unstable nixpkgs to be updated even after the qt package version has been bumped. This fixes vim failing to launch in the nix shell because of a bad gcc version. Bumping the package version to qt6.7.1 also will require bumping PySide to 6.7.1, otherwise it will fail to find qt. Qt 6.7.1 nixpkg commit is 47da0aee5616a063015f10ea593688646f2377e4
1 parent 3e4a32c commit 7d648d2

File tree

2 files changed

+44
-15
lines changed

2 files changed

+44
-15
lines changed

flake.lock

Lines changed: 21 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
{
2-
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
34

4-
outputs = { self, nixpkgs, }:
5+
qt6Pkgs = {
6+
# Commit bumping to qt6.6.3
7+
url = "github:NixOS/nixpkgs/f862bd46d3020bcfe7195b3dad638329271b0524";
8+
};
9+
};
10+
11+
outputs = { self, nixpkgs, qt6Pkgs }:
512
let
613
pkgs = nixpkgs.legacyPackages.x86_64-linux;
14+
15+
qt6 = qt6Pkgs.legacyPackages.x86_64-linux.qt6;
716
in {
817
devShells.x86_64-linux.default = pkgs.mkShell {
918
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
@@ -17,22 +26,19 @@
1726
pkgs.xorg.libxcb
1827
pkgs.freetype
1928
pkgs.dbus
20-
pkgs.qt6.qtwayland
21-
pkgs.qt6.full
22-
pkgs.qt6.qtbase
2329
pkgs.zstd
2430
# For PySide6 Multimedia
2531
pkgs.libpulseaudio
2632
pkgs.libkrb5
33+
34+
qt6.qtwayland
35+
qt6.full
36+
qt6.qtbase
2737
];
2838
buildInputs = with pkgs; [
2939
cmake
3040
gdb
3141
zstd
32-
qt6.qtbase
33-
qt6.full
34-
qt6.qtwayland
35-
qtcreator
3642
python312Packages.pip
3743
python312Full
3844
python312Packages.virtualenv # run virtualenv .
@@ -52,11 +58,17 @@
5258
fontconfig
5359
xorg.libxcb
5460

55-
5661
# this is for the shellhook portion
57-
qt6.wrapQtAppsHook
5862
makeWrapper
5963
bashInteractive
64+
] ++ [
65+
qt6.qtbase
66+
qt6.full
67+
qt6.qtwayland
68+
qtcreator
69+
70+
# this is for the shellhook portion
71+
qt6.wrapQtAppsHook
6072
];
6173
# set the environment variables that Qt apps expect
6274
shellHook = ''

0 commit comments

Comments
 (0)