refactor(qml): move shellHook to qml devShell
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-04-26 18:21:51 -04:00
parent e904d7ff25
commit 4823e9a196
4 changed files with 9 additions and 28 deletions

View file

@ -15,7 +15,6 @@ This directory contains every derivations for devShells exposed by this flake.
| `netdaemon` | Shell that makes sure we have the right dotnet-sdk version for NetDaemon development. |
| `node` | Shell that provides `bumpNpmDeps`, node and typescript. |
| `qml` | qml shell to be loaded by my Neovim config dynamically. |
| `quickshell` | Shell that provides the quickshell executable with `QML2_IMPORT_PATH` correctly defined for quickshell development. |
| `rust` | rust shell to be loaded by my Neovim config dynamically. |
| `subtitles-dev` | Shell that provides the dependencies for my subtitle management scripts. |
| `web` | web shell to be loaded by my Neovim config dynamically. |

View file

@ -37,8 +37,6 @@ in
node = pkgs.callPackage ./node {inherit bumpNpmDeps;};
quickshell = pkgs.callPackage ./quickshell {};
subtitles-dev = pkgs.callPackage ./subtitle-dev {inherit bumpNpmDeps;};
}
// neovimShells

View file

@ -1,25 +0,0 @@
{
lib,
mkShell,
kdePackages,
quickshell,
...
}:
mkShell {
packages = [
quickshell
kdePackages.qtdeclarative
];
shellHook = ''
export QML2_IMPORT_PATH="$QML2_IMPORT_PATH:${lib.makeSearchPath "lib/qt-6/qml" [
quickshell
kdePackages.qtdeclarative
]}"
'';
meta.description = ''
Shell that provides the quickshell executable with `QML2_IMPORT_PATH`
correctly defined for quickshell development.
'';
}

View file

@ -1,10 +1,19 @@
{
lib,
mkShell,
kdePackages,
quickshell,
...
}:
mkShell {
packages = [
kdePackages.qtdeclarative
];
shellHook = ''
export QML2_IMPORT_PATH="$QML2_IMPORT_PATH:${lib.makeSearchPath "lib/qt-6/qml" [
quickshell
kdePackages.qtdeclarative
]}"
'';
}