mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
f043fe4abb
Currently wayland-scanner is defined to be wayland.bin, but we want to split wayland-scanner into a separate package.
55 lines
964 B
Nix
55 lines
964 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, wayland-scanner
|
|
, 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;
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wayland-scanner
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|