2021-02-16 03:15:25 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
|
|
|
, wayland
|
|
|
|
}:
|
2019-08-28 09:44:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kanshi";
|
2020-04-02 10:43:58 +01:00
|
|
|
version = "1.1.0";
|
2019-03-17 21:47:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "kanshi";
|
2019-08-28 09:44:57 +01:00
|
|
|
rev = "v${version}";
|
2020-04-02 10:43:58 +01:00
|
|
|
sha256 = "0nbpgm8qnn7ljsg9vgs35kl8l4rrk542vdcbx8wrn9r909ld3x92";
|
2019-03-17 21:47:38 +00:00
|
|
|
};
|
|
|
|
|
2020-04-02 10:43:58 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
2019-08-28 09:44:57 +01:00
|
|
|
buildInputs = [ wayland ];
|
2019-03-17 21:47:38 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-16 03:15:25 +00:00
|
|
|
homepage = "https://github.com/emersion/kanshi";
|
2019-03-17 21:47:38 +00:00
|
|
|
description = "Dynamic display configuration tool";
|
2019-08-28 09:44:57 +01:00
|
|
|
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.
|
2019-03-17 21:47:38 +00:00
|
|
|
'';
|
2019-08-28 09:44:57 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ balsoft ];
|
|
|
|
platforms = platforms.linux;
|
2019-03-17 21:47:38 +00:00
|
|
|
};
|
|
|
|
}
|