diff options
| author | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-08-26 20:59:16 +1000 |
|---|---|---|
| committer | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-08-26 20:59:16 +1000 |
| commit | bacb52ee1e98a252d931d09f69fa8593618c3abe (patch) | |
| tree | efc191aaad666b4e9eb439f70450aca38435e878 /nix/default.nix | |
| parent | internal: async save item (diff) | |
| download | caelestia-shell-bacb52ee1e98a252d931d09f69fa8593618c3abe.tar.gz caelestia-shell-bacb52ee1e98a252d931d09f69fa8593618c3abe.tar.bz2 caelestia-shell-bacb52ee1e98a252d931d09f69fa8593618c3abe.zip | |
nix: build plugin
Diffstat (limited to 'nix/default.nix')
| -rw-r--r-- | nix/default.nix | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/nix/default.nix b/nix/default.nix index 1f27491..ce59530 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -34,6 +34,8 @@ wayland-protocols, wayland-scanner, xkeyboard-config, + cmake, + ninja, caelestia-cli, withCli ? false, extraRuntimeDeps ? [], @@ -114,6 +116,23 @@ install -Dm755 inhibit_idle $out/bin/inhibit_idle ''; }; + + plugin = stdenv.mkDerivation { + pname = "caelestia-qt-plugin"; + version = "0.0.1"; + + src = ./../plugin; + + dontWrapQtApps = true; + nativeBuildInputs = [cmake ninja]; + buildInputs = [qt6.qtbase qt6.qtdeclarative]; + + cmakeBuildType = "Release"; + cmakeFlags = [ + (lib.cmakeFeature "INSTALL_QMLDIR" qt6.qtbase.qtQmlPrefix) + (lib.cmakeFeature "GIT_REVISION" rev) + ]; + }; in stdenv.mkDerivation { pname = "caelestia-shell"; @@ -121,7 +140,7 @@ in src = ./..; nativeBuildInputs = [gcc makeWrapper qt6.wrapQtAppsHook]; - buildInputs = [quickshell beatDetector idleInhibitor xkeyboard-config qt6.qtbase]; + buildInputs = [quickshell plugin beatDetector idleInhibitor xkeyboard-config qt6.qtbase]; propagatedBuildInputs = runtimeDeps; patchPhase = '' |