mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-11-16 18:25:57 +01:00
Fix pkg-config and Nix
This commit is contained in:
parent
5cb3d2ba62
commit
db5e1399b9
3 changed files with 8 additions and 4 deletions
|
@ -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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue