about summary refs log tree commit diff
path: root/pkgs/tools/X11
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-30 01:23:58 +0100
committerGitHub <noreply@github.com>2023-11-30 01:23:58 +0100
commitef13e20509743a4a66d0b2bc20bcb923ba9de453 (patch)
treee09b63cbe8a958d4a7f37cbc6c04f95fb119d182 /pkgs/tools/X11
parentc1fd97321933417f3ce5f77a41012083e07b9219 (diff)
parent817b64d991cd051d2cb0c89a2bacc381f8321f7e (diff)
Merge pull request #270568 from wineee/xlayoutdisplay
xlayoutdisplay: 1.3.0 -> 1.5.0
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r--pkgs/tools/X11/xlayoutdisplay/default.nix12
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/tools/X11/xlayoutdisplay/default.nix b/pkgs/tools/X11/xlayoutdisplay/default.nix
index 499bd46945925..5ab9ca0b86ff1 100644
--- a/pkgs/tools/X11/xlayoutdisplay/default.nix
+++ b/pkgs/tools/X11/xlayoutdisplay/default.nix
@@ -1,27 +1,23 @@
-{ lib, stdenv, fetchFromGitHub, xorg, boost, gtest }:
+{ lib, stdenv, fetchFromGitHub, pkg-config, xorg, boost, gtest }:
 
 stdenv.mkDerivation rec {
   pname = "xlayoutdisplay";
-  version = "1.3.0";
+  version = "1.5.0";
 
   src = fetchFromGitHub {
     owner = "alex-courtis";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-8K9SoZToJTk/sL4PC4Fcsu9XzGLYfNIZlbIyxc9jf84=";
+    hash = "sha256-A37jFhVTW/3QNEf776Oi3ViRK+ebOPRTsEQqdmNhA7E=";
   };
 
+  nativeBuildInputs = [ pkg-config ];
   buildInputs = with xorg; [ libX11 libXrandr libXcursor boost ];
   nativeCheckInputs = [ gtest ];
 
   doCheck = true;
   checkTarget = "gtest";
 
-  # Fixup reference to hardcoded boost path, dynamically link as seems fine and we don't have static for this
-  postPatch = ''
-    substituteInPlace config.mk --replace '/usr/lib/libboost_program_options.a' '-lboost_program_options'
-  '';
-
   makeFlags = [ "PREFIX=${placeholder "out"}" ];
   enableParallelBuilding = true;