nixpkgs-suyu/pkgs/tools/wayland/kanshi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
991 B
Nix
Raw Normal View History

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