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

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

47 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2022-09-27 23:54:13 +00:00
, fetchFromSourcehut
, meson
, ninja
, pkg-config
, scdoc
, wayland
2022-05-09 14:18:15 +00:00
, wayland-scanner
2022-09-27 23:54:13 +00:00
, libvarlink
}:
2019-08-28 08:44:57 +00:00
stdenv.mkDerivation rec {
pname = "kanshi";
2022-09-27 23:54:13 +00:00
version = "1.3.0";
2019-03-17 21:47:38 +00:00
2022-09-27 23:54:13 +00:00
src = fetchFromSourcehut {
owner = "~emersion";
2019-03-17 21:47:38 +00:00
repo = "kanshi";
2019-08-28 08:44:57 +00:00
rev = "v${version}";
2022-09-27 23:54:13 +00:00
sha256 = "kqTRJhLd9vLGAPO5U5cWeZgzWzne+0Cr4TIS0ciZSGk=";
2019-03-17 21:47:38 +00:00
};
2022-05-09 14:18:15 +00:00
strictDeps = true;
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
2022-09-27 23:54:13 +00:00
buildInputs = [ wayland libvarlink ];
2019-03-17 21:47:38 +00:00
meta = with lib; {
2022-09-27 23:54:13 +00:00
homepage = "https://sr.ht/~emersion/kanshi";
2019-03-17 21:47:38 +00:00
description = "Dynamic display configuration tool";
2019-08-28 08:44:57 +00: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 08:44:57 +00:00
license = licenses.mit;
2022-09-27 23:54:13 +00:00
maintainers = with maintainers; [ balsoft danielbarter ];
2019-08-28 08:44:57 +00:00
platforms = platforms.linux;
2019-03-17 21:47:38 +00:00
};
}