Merge pull request #54884 from dtzWill/feature/xlayoutdisplay
xlayoutdisplay: init at 1.0.2
This commit is contained in:
commit
d166521d5f
34
pkgs/tools/X11/xlayoutdisplay/default.nix
Normal file
34
pkgs/tools/X11/xlayoutdisplay/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, fetchFromGitHub, xorg, boost, cmake, gtest }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xlayoutdisplay-${version}";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alex-courtis";
|
||||
repo = "xlayoutdisplay";
|
||||
rev = "v${version}";
|
||||
sha256 = "1cqn98lpx9rkfhavbqalaaljw351hvqsrszgqnwvcyq05vq26dwx";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = with xorg; [ libX11 libXrandr libXcursor boost ];
|
||||
checkInputs = [ gtest ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
# format security fixup
|
||||
postPatch = ''
|
||||
substituteInPlace test/test-Monitors.cpp \
|
||||
--replace 'fprintf(lidStateFile, contents);' \
|
||||
'fputs(contents, lidStateFile);'
|
||||
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Detects and arranges linux display outputs, using XRandR for detection and xrandr for arrangement";
|
||||
homepage = https://github.com/alex-courtis/xlayoutdisplay;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
@ -23042,6 +23042,8 @@ in
|
||||
|
||||
xinput_calibrator = callPackage ../tools/X11/xinput_calibrator { };
|
||||
|
||||
xlayoutdisplay = callPackage ../tools/X11/xlayoutdisplay { };
|
||||
|
||||
xlog = callPackage ../applications/misc/xlog { };
|
||||
|
||||
xmagnify = callPackage ../tools/X11/xmagnify { };
|
||||
|
Loading…
Reference in New Issue
Block a user