nix: build plugin
This commit is contained in:
parent
838eb74eb8
commit
bacb52ee1e
1 changed files with 20 additions and 1 deletions
|
|
@ -34,6 +34,8 @@
|
||||||
wayland-protocols,
|
wayland-protocols,
|
||||||
wayland-scanner,
|
wayland-scanner,
|
||||||
xkeyboard-config,
|
xkeyboard-config,
|
||||||
|
cmake,
|
||||||
|
ninja,
|
||||||
caelestia-cli,
|
caelestia-cli,
|
||||||
withCli ? false,
|
withCli ? false,
|
||||||
extraRuntimeDeps ? [],
|
extraRuntimeDeps ? [],
|
||||||
|
|
@ -114,6 +116,23 @@
|
||||||
install -Dm755 inhibit_idle $out/bin/inhibit_idle
|
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
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "caelestia-shell";
|
pname = "caelestia-shell";
|
||||||
|
|
@ -121,7 +140,7 @@ in
|
||||||
src = ./..;
|
src = ./..;
|
||||||
|
|
||||||
nativeBuildInputs = [gcc makeWrapper qt6.wrapQtAppsHook];
|
nativeBuildInputs = [gcc makeWrapper qt6.wrapQtAppsHook];
|
||||||
buildInputs = [quickshell beatDetector idleInhibitor xkeyboard-config qt6.qtbase];
|
buildInputs = [quickshell plugin beatDetector idleInhibitor xkeyboard-config qt6.qtbase];
|
||||||
propagatedBuildInputs = runtimeDeps;
|
propagatedBuildInputs = runtimeDeps;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue