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(HYPRLANG_VERSION "0.2.0")
set(PREFIX ${CMAKE_INSTALL_PREFIX}) set(PREFIX ${CMAKE_INSTALL_PREFIX})
set(INCLUDE ${CMAKE_INSTALL_INCLUDEDIR})
project(hyprlang project(hyprlang
VERSION ${HYPRLANG_VERSION} VERSION ${HYPRLANG_VERSION}

View file

@ -1,9 +1,10 @@
prefix="@PREFIX@" prefix=@PREFIX@
includedir="${prefix}/include" includedir=@INCLUDE@
libdir=${prefix}/lib
Name: hyprlang Name: hyprlang
URL: https://github.com/hyprwm/hyprlang URL: https://github.com/hyprwm/hyprlang
Description: The official implementation library for the hypr config language. Description: The official implementation library for the hypr config language.
Version: @HYPRLANG_VERSION@ Version: @HYPRLANG_VERSION@
Cflags: -I"${prefix}/include" Cflags: -I${includedir}
libs: -lhyprlang Libs: -L${libdir} -lhyprlang

View file

@ -12,6 +12,8 @@ stdenv.mkDerivation {
nativeBuildInputs = [cmake]; nativeBuildInputs = [cmake];
outputs = ["out" "dev"];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/hyprwm/hyprlang"; homepage = "https://github.com/hyprwm/hyprlang";
description = "The official implementation library for the hypr config language"; description = "The official implementation library for the hypr config language";