mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromSourcehut
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, scdoc
|
|
, wayland
|
|
, wayland-scanner
|
|
, libvarlink
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kanshi";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~emersion";
|
|
repo = "kanshi";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5dIBQBA3OMlmaSYswwggFuedsb3i4uy9bcTZahIS2gQ=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
|
buildInputs = [ wayland libvarlink ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sr.ht/~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 danielbarter ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|