2022-06-14 00:07:37 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, libinput
|
|
|
|
, libyamlcpp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "way-displays";
|
2022-08-02 20:41:49 +01:00
|
|
|
version = "1.6.0";
|
2022-06-14 00:07:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alex-courtis";
|
|
|
|
repo = "way-displays";
|
|
|
|
rev = "${version}";
|
2022-08-02 20:41:49 +01:00
|
|
|
sha256 = "sha256-wrfRSJaVz0GjYxuIDvJ+16aaz+kRTtv0q5jN2IG4Uco=";
|
2022-06-14 00:07:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wayland
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland
|
|
|
|
libyamlcpp
|
|
|
|
libinput
|
|
|
|
];
|
|
|
|
|
2022-08-02 20:41:49 +01:00
|
|
|
makeFlags = [ "DESTDIR=$(out) PREFIX= PREFIX_ETC= ROOT_ETC=$(out)/etc"];
|
2022-06-14 00:07:37 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|