diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b2ff23..4f17796 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.19) set(HYPRLANG_VERSION "0.2.0") set(PREFIX ${CMAKE_INSTALL_PREFIX}) +set(INCLUDE ${CMAKE_INSTALL_INCLUDEDIR}) project(hyprlang VERSION ${HYPRLANG_VERSION} diff --git a/hyprlang.pc.in b/hyprlang.pc.in index b1bfb5c..97350dc 100644 --- a/hyprlang.pc.in +++ b/hyprlang.pc.in @@ -1,9 +1,10 @@ -prefix="@PREFIX@" -includedir="${prefix}/include" +prefix=@PREFIX@ +includedir=@INCLUDE@ +libdir=${prefix}/lib Name: hyprlang URL: https://github.com/hyprwm/hyprlang Description: The official implementation library for the hypr config language. Version: @HYPRLANG_VERSION@ -Cflags: -I"${prefix}/include" -libs: -lhyprlang +Cflags: -I${includedir} +Libs: -L${libdir} -lhyprlang diff --git a/nix/default.nix b/nix/default.nix index 1dfa3fa..6c82078 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -12,6 +12,8 @@ stdenv.mkDerivation { nativeBuildInputs = [cmake]; + outputs = ["out" "dev"]; + meta = with lib; { homepage = "https://github.com/hyprwm/hyprlang"; description = "The official implementation library for the hypr config language";