2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2021-07-21 07:28:18 +00:00
|
|
|
, wayland-scanner
|
|
|
|
, wayland
|
2021-02-17 17:02:09 +00:00
|
|
|
, wayland-protocols
|
2021-07-21 07:28:18 +00:00
|
|
|
, libseccomp
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wob";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "0.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "francma";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-gVQqZbz6ylBBlmhSgyaSEvAyMi48QiuviwZodPVGJxI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
|
|
|
buildInputs = [ wayland wayland-protocols ]
|
2021-01-15 22:18:51 +00:00
|
|
|
++ lib.optional stdenv.isLinux libseccomp;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
mesonFlags = lib.optional stdenv.isLinux "-Dseccomp=enabled";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-17 17:02:09 +00:00
|
|
|
inherit (src.meta) homepage;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A lightweight overlay bar for Wayland";
|
|
|
|
longDescription = ''
|
|
|
|
A lightweight overlay volume/backlight/progress/anything bar for Wayland,
|
|
|
|
inspired by xob.
|
|
|
|
'';
|
|
|
|
changelog = "https://github.com/francma/wob/releases/tag/${version}";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
2021-02-17 17:02:09 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|