Skip to content

Commit

Permalink
Fix pkg-config and Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Jan 2, 2024
1 parent 5cb3d2b commit db5e139
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
9 changes: 5 additions & 4 deletions hyprlang.pc.in
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit db5e139

Please sign in to comment.