diff options
author | Will Dietz <w@wdtz.org> | 2019-01-29 07:07:53 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-01-29 07:07:53 -0600 |
commit | 7ed3c32015ce8cfa0fc1258cec647ac9ace62b19 (patch) | |
tree | fcf157a498a6ad6eb89080e7d3d82a8ac4edf094 /pkgs/tools/X11 | |
parent | a98cebbc35278a8c92e0cb6f0c2813d814b25499 (diff) | |
download | nixlib-7ed3c32015ce8cfa0fc1258cec647ac9ace62b19.tar nixlib-7ed3c32015ce8cfa0fc1258cec647ac9ace62b19.tar.gz nixlib-7ed3c32015ce8cfa0fc1258cec647ac9ace62b19.tar.bz2 nixlib-7ed3c32015ce8cfa0fc1258cec647ac9ace62b19.tar.lz nixlib-7ed3c32015ce8cfa0fc1258cec647ac9ace62b19.tar.xz nixlib-7ed3c32015ce8cfa0fc1258cec647ac9ace62b19.tar.zst nixlib-7ed3c32015ce8cfa0fc1258cec647ac9ace62b19.zip |
xlayoutdisplay: init at 1.0.2
(promoting from my NUR repo)
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r-- | pkgs/tools/X11/xlayoutdisplay/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xlayoutdisplay/default.nix b/pkgs/tools/X11/xlayoutdisplay/default.nix new file mode 100644 index 000000000000..5983cd3e663a --- /dev/null +++ b/pkgs/tools/X11/xlayoutdisplay/default.nix @@ -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; + }; +} |