kanshi: 2019-02-02 -> 1.0.0
This commit is contained in:
parent
a35400ffa2
commit
83bac3d974
@ -1,40 +1,33 @@
|
|||||||
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, udev }:
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, scdoc, wayland }:
|
||||||
rustPlatform.buildRustPackage
|
|
||||||
{
|
stdenv.mkDerivation rec {
|
||||||
pname = "kanshi-unstable";
|
pname = "kanshi";
|
||||||
version = "2019-02-02";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "emersion";
|
owner = "emersion";
|
||||||
repo = "kanshi";
|
repo = "kanshi";
|
||||||
rev = "970267e400c21a6bb51a1c80a0aadfd1e6660a7b";
|
rev = "v${version}";
|
||||||
sha256 = "10lfdan86bmwazpma6ixnv46z9cnf879gxln8gx87v7a1x3ss0bh";
|
sha256 = "0v50q1s105c2rar6mi1pijm8llsnsp62gv4swd3ddjn5rwallg46";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig udev ];
|
nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
|
||||||
|
buildInputs = [ wayland ];
|
||||||
|
|
||||||
cargoSha256 = "0pvkrdjrg9y38vsrqkrvsknzp78sknpmq14rskvij450a9mpihii";
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Dynamic display configuration tool";
|
description = "Dynamic display configuration tool";
|
||||||
longDescription =
|
longDescription = ''
|
||||||
''
|
kanshi allows you to define output profiles that are automatically enabled
|
||||||
Kanshi uses a configuration file and a list of available displays to choose
|
and disabled on hotplug. For instance, this can be used to turn a laptop's
|
||||||
the right settings for each display. It's useful if your window manager
|
internal screen off when docked.
|
||||||
doesn't support multiple display configurations (e.g. i3/Sway).
|
|
||||||
|
|
||||||
For now, it only supports:
|
kanshi can be used on Wayland compositors supporting the
|
||||||
- sysfs as backend
|
wlr-output-management protocol.
|
||||||
- udev as notifier (optional)
|
|
||||||
- Configuration file
|
|
||||||
- GNOME (~/.config/monitors.xml)
|
|
||||||
- Kanshi (see below)
|
|
||||||
- Sway as frontend
|
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/emersion/kanshi";
|
homepage = "https://github.com/emersion/kanshi";
|
||||||
downloadPage = "https://github.com/emersion/kanshi";
|
downloadPage = "https://github.com/emersion/kanshi";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ stdenv.lib.maintainers.balsoft ];
|
maintainers = with maintainers; [ balsoft ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user