From 33fc340c955eecd57442a8f63cefb41df004bbc9 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 12 Apr 2024 17:01:15 +0200 Subject: [PATCH] lomiri.deviceinfo: Fix references variable in pkg-config --- pkgs/desktops/lomiri/development/deviceinfo/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/desktops/lomiri/development/deviceinfo/default.nix b/pkgs/desktops/lomiri/development/deviceinfo/default.nix index 9ddadb83cbec..6b05a4adddcf 100644 --- a/pkgs/desktops/lomiri/development/deviceinfo/default.nix +++ b/pkgs/desktops/lomiri/development/deviceinfo/default.nix @@ -27,6 +27,12 @@ stdenv.mkDerivation (finalAttrs: { "bin" ]; + postPatch = '' + # For our automatic pkg-config output patcher to work, prefix must be used here + substituteInPlace headers/deviceinfo.pc.in \ + --replace-fail 'libdir=''${exec_prefix}' 'libdir=''${prefix}' + ''; + strictDeps = true; nativeBuildInputs = [