2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-12-17 10:02:37 +00:00
|
|
|
, inih
|
2021-02-17 17:02:09 +00:00
|
|
|
, 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";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.14.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "francma";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-u4jLVLGcMTgDEgN8jW5d59m3GorJX7Z6+qKhzvbON3k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-07-21 07:28:18 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = [ inih 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
|
|
|
};
|
|
|
|
}
|