nixpkgs-suyu/pkgs/tools/graphics/wdisplays/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, meson, ninja, pkg-config, gtk3, epoxy, wayland, wrapGAppsHook
, fetchpatch
}:
stdenv.mkDerivation rec {
pname = "wdisplays";
version = "1.0";
2019-10-29 12:04:50 +01:00
nativeBuildInputs = [ meson ninja pkg-config wrapGAppsHook ];
2019-10-29 12:04:50 +01:00
buildInputs = [ gtk3 epoxy wayland ];
src = fetchFromGitHub {
owner = "cyclopsian";
repo = "wdisplays";
rev = version;
sha256 = "1xhgrcihja2i7yg54ghbwr1v6kf8jnsfcp364yb97vkxskc4y21y";
2019-10-29 12:04:50 +01: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";
})
];
2019-10-29 12:04:50 +01:00
meta = let inherit (stdenv) lib; in {
description = "A graphical application for configuring displays in Wayland compositors";
homepage = "https://github.com/cyclopsian/wdisplays";
2020-02-09 20:29:21 +01:00
maintainers = with lib.maintainers; [ lheckemann ma27 ];
2019-10-29 12:04:50 +01:00
license = lib.licenses.mit;
platforms = lib.platforms.linux;
};
}