nixpkgs/pkgs/by-name/ka/kanshi/package.nix

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

67 lines
1.3 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,
2024-04-30 13:02:36 +00:00
libscfg,
}:
2019-08-28 08:44:57 +00:00
stdenv.mkDerivation rec {
pname = "kanshi";
2024-06-09 08:00:47 +00:00
version = "1.7.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}";
2024-06-09 08:00:47 +00:00
sha256 = "sha256-FDt+F5tWHLsMejlExb5yPh0SlWzuUlK9u54Uy+alrzw=";
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
2024-04-30 13:02:36 +00:00
];
buildInputs = [
wayland
libvarlink
libscfg
];
2024-04-30 13:02:36 +00:00
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=maybe-uninitialized"
];
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;
mainProgram = "kanshi";
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
};
}