depot/third_party/nixpkgs/pkgs/tools/X11/xlayoutdisplay/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

32 lines
937 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, xorg, boost, gtest }:
stdenv.mkDerivation rec {
pname = "xlayoutdisplay";
version = "1.5.0";
src = fetchFromGitHub {
owner = "alex-courtis";
repo = pname;
rev = "v${version}";
hash = "sha256-A37jFhVTW/3QNEf776Oi3ViRK+ebOPRTsEQqdmNhA7E=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = with xorg; [ libX11 libXrandr libXcursor boost ];
nativeCheckInputs = [ gtest ];
doCheck = true;
checkTarget = "gtest";
makeFlags = [ "PREFIX=${placeholder "out"}" ];
enableParallelBuilding = true;
meta = with 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;
platforms = platforms.linux;
mainProgram = "xlayoutdisplay";
};
}