mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-23 14:55:57 +01:00
Nix: build using CMake
This commit is contained in:
parent
ea9589606f
commit
4b65a23c80
1 changed files with 13 additions and 18 deletions
|
@ -1,55 +1,50 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
|
cmake,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
meson,
|
|
||||||
ninja,
|
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
wayland-scanner,
|
||||||
|
wrapQtAppsHook,
|
||||||
|
hyprland,
|
||||||
|
hyprland-protocols,
|
||||||
hyprlang,
|
hyprlang,
|
||||||
libdrm,
|
libdrm,
|
||||||
mesa,
|
mesa,
|
||||||
pipewire,
|
pipewire,
|
||||||
sdbus-cpp,
|
|
||||||
systemd,
|
|
||||||
wayland-protocols,
|
|
||||||
wayland-scanner,
|
|
||||||
qtbase,
|
qtbase,
|
||||||
qttools,
|
qttools,
|
||||||
qtwayland,
|
qtwayland,
|
||||||
wrapQtAppsHook,
|
sdbus-cpp,
|
||||||
hyprland,
|
|
||||||
slurp,
|
slurp,
|
||||||
hyprland-protocols,
|
systemd,
|
||||||
wayland,
|
wayland,
|
||||||
|
wayland-protocols,
|
||||||
debug ? false,
|
debug ? false,
|
||||||
version ? "git",
|
version ? "git",
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "xdg-desktop-portal-hyprland";
|
pname = "xdg-desktop-portal-hyprland" + lib.optionalString debug "-debug";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = ../.;
|
src = ../.;
|
||||||
|
|
||||||
mesonBuildType =
|
cmakeFlags = lib.optional debug (lib.strings.cmakeFeature "CMAKE_BUILD_TYPE" "DEBUG");
|
||||||
if debug
|
|
||||||
then "debug"
|
|
||||||
else "release";
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
cmake
|
||||||
ninja
|
makeWrapper
|
||||||
pkg-config
|
pkg-config
|
||||||
wayland-scanner
|
wayland-scanner
|
||||||
makeWrapper
|
|
||||||
wrapQtAppsHook
|
wrapQtAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
hyprland-protocols
|
hyprland-protocols
|
||||||
|
hyprlang
|
||||||
libdrm
|
libdrm
|
||||||
mesa
|
mesa
|
||||||
pipewire
|
pipewire
|
||||||
hyprlang
|
|
||||||
qtbase
|
qtbase
|
||||||
qttools
|
qttools
|
||||||
qtwayland
|
qtwayland
|
||||||
|
|
Loading…
Reference in a new issue