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

44 lines
1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, scdoc
, wayland-scanner
, wayland
, wayland-protocols
, libseccomp
2019-10-27 16:03:42 +01:00
}:
stdenv.mkDerivation rec {
pname = "wob";
2021-08-14 12:02:09 +02:00
version = "0.12";
2019-10-27 16:03:42 +01:00
src = fetchFromGitHub {
owner = "francma";
repo = pname;
rev = version;
2021-08-14 12:02:09 +02:00
sha256 = "sha256-gVQqZbz6ylBBlmhSgyaSEvAyMi48QiuviwZodPVGJxI=";
2019-10-27 16:03:42 +01:00
};
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
buildInputs = [ wayland wayland-protocols ]
2021-01-15 10:19:50 +01:00
++ lib.optional stdenv.isLinux libseccomp;
2020-02-29 14:39:55 +01:00
2021-01-15 10:19:50 +01:00
mesonFlags = lib.optional stdenv.isLinux "-Dseccomp=enabled";
2019-10-27 16:03:42 +01:00
meta = with lib; {
inherit (src.meta) homepage;
2019-10-27 16:03:42 +01:00
description = "A lightweight overlay bar for Wayland";
longDescription = ''
A lightweight overlay volume/backlight/progress/anything bar for Wayland,
inspired by xob.
'';
2020-02-29 14:39:55 +01:00
changelog = "https://github.com/francma/wob/releases/tag/${version}";
2019-10-27 16:03:42 +01:00
license = licenses.isc;
maintainers = with maintainers; [ primeos ];
platforms = platforms.unix;
2019-10-27 16:03:42 +01:00
};
}