summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/wayland
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-02-16 00:15:25 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-02-16 12:37:39 -0300
commitfa1d3eee74718a1b1dbbac699d040ca049971f18 (patch)
tree9906be8e065881da0a1a7fdb5355559ccc111301 /pkgs/tools/wayland
parent7f3c4b5df206656f05c3b2c55159a3bf721e3d18 (diff)
kanshi: rename from tools/misc to tools/wayland
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r--pkgs/tools/wayland/kanshi/default.nix40
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 000000000000..c661c98a24bb
--- /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;
+ };
+}