2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
|
|
|
, wayland
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kanshi";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "kanshi";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-RVMeS2qEjTYK6r7IwMeFSqfRpKR8di2eQXhewfhTnYI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
|
|
|
buildInputs = [ wayland ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-17 17:02:09 +00:00
|
|
|
homepage = "https://github.com/emersion/kanshi";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Dynamic display configuration tool";
|
|
|
|
longDescription = ''
|
|
|
|
kanshi allows you to define output profiles that are automatically enabled
|
|
|
|
and disabled on hotplug. For instance, this can be used to turn a laptop's
|
|
|
|
internal screen off when docked.
|
|
|
|
|
|
|
|
kanshi can be used on Wayland compositors supporting the
|
|
|
|
wlr-output-management protocol.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ balsoft ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|