1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/by-name/ka/kanshi/package.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2022-09-28 00:54:13 +01:00
, fetchFromSourcehut
, meson
, ninja
, pkg-config
, scdoc
, wayland
2022-05-09 15:18:15 +01:00
, wayland-scanner
2022-09-28 00:54:13 +01:00
, libvarlink
2024-04-30 14:02:36 +01:00
, libscfg
}:
2019-08-28 09:44:57 +01:00
stdenv.mkDerivation rec {
pname = "kanshi";
2024-06-09 09:00:47 +01:00
version = "1.7.0";
2019-03-17 21:47:38 +00:00
2022-09-28 00:54:13 +01:00
src = fetchFromSourcehut {
owner = "~emersion";
2019-03-17 21:47:38 +00:00
repo = "kanshi";
2019-08-28 09:44:57 +01:00
rev = "v${version}";
2024-06-09 09:00:47 +01:00
sha256 = "sha256-FDt+F5tWHLsMejlExb5yPh0SlWzuUlK9u54Uy+alrzw=";
2019-03-17 21:47:38 +00:00
};
2022-05-09 15:18:15 +01:00
strictDeps = true;
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
2024-04-30 14:02:36 +01:00
buildInputs = [ wayland libvarlink libscfg ];
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=maybe-uninitialized"
];
2019-03-17 21:47:38 +00:00
meta = with lib; {
2022-09-28 00:54:13 +01:00
homepage = "https://sr.ht/~emersion/kanshi";
2019-03-17 21:47:38 +00:00
description = "Dynamic display configuration tool";
2019-08-28 09:44:57 +01: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 09:44:57 +01:00
license = licenses.mit;
mainProgram = "kanshi";
2022-09-28 00:54:13 +01:00
maintainers = with maintainers; [ balsoft danielbarter ];
2019-08-28 09:44:57 +01:00
platforms = platforms.linux;
2019-03-17 21:47:38 +00:00
};
}