From 78826c6d18ee587a28cf39479f9a015888d2e096 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Tue, 16 May 2023 20:50:18 +0300 Subject: [PATCH] meson & nix: install wlroots headers (#2287) --- meson.build | 2 +- nix/default.nix | 4 ++ nix/update-inputs.sh | 5 ++- .../packagefiles/wlroots-meson-build.patch | 45 +++++++++++++++++++ subprojects/wlroots.wrap | 7 +++ 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 subprojects/packagefiles/wlroots-meson-build.patch create mode 100644 subprojects/wlroots.wrap diff --git a/meson.build b/meson.build index 224c9248..6a94dee6 100644 --- a/meson.build +++ b/meson.build @@ -96,5 +96,5 @@ import('pkgconfig').generate( url: 'https://github.com/hyprwm/Hyprland', description: 'Hyprland header files', install_dir: pkg_install_dir, - subdirs: ['', 'hyprland/protocols'], + subdirs: ['', 'hyprland/protocols', 'hyprland/wlroots'], ) diff --git a/nix/default.nix b/nix/default.nix index eee9e6c4..5b59e514 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -113,6 +113,10 @@ in }' ''; + postInstall = '' + ln -s ${wlroots}/include/wlr $dev/include/hyprland/wlroots + ''; + passthru.providedSessions = ["hyprland"]; meta = with lib; { diff --git a/nix/update-inputs.sh b/nix/update-inputs.sh index f4b63f9c..6db18606 100755 --- a/nix/update-inputs.sh +++ b/nix/update-inputs.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env -S nix shell nixpkgs#gawk nixpkgs#git nixpkgs#moreutils nixpkgs#jq nixpkgs#ripgrep -c bash +#!/usr/bin/env -S nix shell nixpkgs#gawk nixpkgs#git nixpkgs#gnused nixpkgs#moreutils nixpkgs#jq nixpkgs#ripgrep -c bash set -ex @@ -16,6 +16,9 @@ if [ "$SUB_REV" != "$CRT_REV" ]; then # remove "dirty" mark from lockfile jq