Fix pkg-config and Nix

This commit is contained in:
Mihai Fufezan 2024-01-02 23:13:20 +02:00
parent 5cb3d2ba62
commit db5e1399b9
No known key found for this signature in database
3 changed files with 8 additions and 4 deletions

View file

@ -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}

View file

@ -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

View file

@ -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";