depot/third_party/nixpkgs/pkgs/tools/wayland/way-displays/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

49 lines
896 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, wayland
, libinput
, yaml-cpp
}:
stdenv.mkDerivation rec {
pname = "way-displays";
version = "1.11.0";
src = fetchFromGitHub {
owner = "alex-courtis";
repo = "way-displays";
rev = version;
sha256 = "sha256-uJsamTsfxpFoKOSgNs6+VQpB7/ec4NoHJsjtDa5Dex8=";
};
strictDeps = true;
nativeBuildInputs = [
pkg-config
wayland
];
buildInputs = [
wayland
yaml-cpp
libinput
];
makeFlags = [
"PREFIX=${placeholder "out"}"
"PREFIX_ETC=${placeholder "out"}"
"CC:=$(CC)"
"CXX:=$(CXX)"
];
meta = with lib; {
homepage = "https://github.com/alex-courtis/way-displays";
description = "Auto Manage Your Wayland Displays";
license = licenses.mit;
maintainers = with maintainers; [ simoneruffini ];
platforms = platforms.linux;
mainProgram = "way-displays";
};
}