about summary refs log tree commit diff
path: root/pkgs/development/libraries/libtsm
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2022-05-18 14:44:36 +0300
committerArtturin <Artturin@artturin.com>2022-09-07 21:49:32 +0300
commitc29cb15ac1310a880c460aad94addd730685734a (patch)
tree1b00ad588f01b8860325cbe8435dc3308cfb1e87 /pkgs/development/libraries/libtsm
parente7b9363c99ad8f8fa0d9ae1e5adfc093340fd963 (diff)
libtsm: fix paths in pkg-config file
Diffstat (limited to 'pkgs/development/libraries/libtsm')
-rw-r--r--pkgs/development/libraries/libtsm/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libtsm/default.nix b/pkgs/development/libraries/libtsm/default.nix
index 25214242b5318..7c0868509f092 100644
--- a/pkgs/development/libraries/libtsm/default.nix
+++ b/pkgs/development/libraries/libtsm/default.nix
@@ -15,6 +15,13 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake pkg-config ];
 
+  # https://github.com/Aetf/libtsm/issues/20
+  postPatch = ''
+    substituteInPlace etc/libtsm.pc.in \
+      --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
+      --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
+  '';
+
   meta = with lib; {
     description = "Terminal-emulator State Machine";
     homepage = "http://www.freedesktop.org/wiki/Software/kmscon/libtsm/";