2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, gtk3, epoxy, wayland, wrapGAppsHook
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchpatch
|
|
|
|
}:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wdisplays";
|
|
|
|
version = "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ gtk3 epoxy wayland ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cyclopsian";
|
|
|
|
repo = "wdisplays";
|
2020-05-15 21:57:56 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1xhgrcihja2i7yg54ghbwr1v6kf8jnsfcp364yb97vkxskc4y21y";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
patches = [
|
|
|
|
# Fixes `Gdk-Message: 10:26:38.752: Error reading events from display: Success`
|
|
|
|
# https://github.com/cyclopsian/wdisplays/pull/20
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/cyclopsian/wdisplays/commit/5198a9c94b40ff157c284df413be5402f1b75118.patch";
|
|
|
|
sha256 = "1xwphyn0ksf8isy9dz3mfdhmsz4jv02870qz5615zs7aqqfcwn85";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A graphical application for configuring displays in Wayland compositors";
|
|
|
|
homepage = "https://github.com/cyclopsian/wdisplays";
|
|
|
|
maintainers = with lib.maintainers; [ lheckemann ma27 ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|