Merge pull request #177582 from simoneruffini/fix/way-display-add

way-displays: init at 1.5.3
This commit is contained in:
Anderson Torres 2022-06-15 22:23:10 -03:00 committed by GitHub
commit e63b401182
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View file

@ -11858,6 +11858,12 @@
github = "simarra";
githubId = 14372987;
};
simoneruffini = {
email = "simone.ruffini@tutanota.com";
github = "simoneruffini";
githubId = 50401154;
name = "Simone Ruffini";
};
simonchatts = {
email = "code@chatts.net";
github = "simonchatts";

View file

@ -0,0 +1,47 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, wayland
, libinput
, libyamlcpp
}:
stdenv.mkDerivation rec {
pname = "way-displays";
version = "1.5.3";
src = fetchFromGitHub {
owner = "alex-courtis";
repo = "way-displays";
rev = "${version}";
sha256 = "sha256-5A0qZRpWw3Deo9cGqGULpQMoPCVh85cWE/wJ5XSbVJk=";
};
postPatch = ''
substituteInPlace src/cfg.cpp --replace "\"/etc" "\"$out/etc"
'';
strictDeps = true;
nativeBuildInputs = [
pkg-config
wayland
];
buildInputs = [
wayland
libyamlcpp
libinput
];
makeFlags = [ "DESTDIR=$(out) PREFIX= PREFIX_ETC="];
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;
};
}

View file

@ -3135,6 +3135,8 @@ with pkgs;
wayland-proxy-virtwl = callPackage ../tools/wayland/wayland-proxy-virtwl { };
way-displays = callPackage ../tools/wayland/way-displays { };
wev = callPackage ../tools/wayland/wev { };
wdomirror = callPackage ../tools/wayland/wdomirror { };