diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-02-16 00:15:25 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-02-16 12:37:39 -0300 |
commit | fa1d3eee74718a1b1dbbac699d040ca049971f18 (patch) | |
tree | 9906be8e065881da0a1a7fdb5355559ccc111301 /pkgs/tools/wayland | |
parent | 7f3c4b5df206656f05c3b2c55159a3bf721e3d18 (diff) |
kanshi: rename from tools/misc to tools/wayland
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r-- | pkgs/tools/wayland/kanshi/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/kanshi/default.nix b/pkgs/tools/wayland/kanshi/default.nix new file mode 100644 index 0000000000000..c661c98a24bbe --- /dev/null +++ b/pkgs/tools/wayland/kanshi/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, scdoc +, wayland +}: + +stdenv.mkDerivation rec { + pname = "kanshi"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "emersion"; + repo = "kanshi"; + rev = "v${version}"; + sha256 = "0nbpgm8qnn7ljsg9vgs35kl8l4rrk542vdcbx8wrn9r909ld3x92"; + }; + + nativeBuildInputs = [ meson ninja pkg-config scdoc ]; + buildInputs = [ wayland ]; + + meta = with lib; { + homepage = "https://github.com/emersion/kanshi"; + 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; + }; +} |