2021-02-16 03:33:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2021-07-03 16:02:23 +01:00
|
|
|
, wayland-scanner
|
|
|
|
, wayland
|
2021-02-16 03:33:21 +00:00
|
|
|
, wayland-protocols
|
2021-07-03 16:02:23 +01:00
|
|
|
, libseccomp
|
2019-10-27 15:03:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wob";
|
2022-03-06 20:23:02 +00:00
|
|
|
version = "0.13";
|
2019-10-27 15:03:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "francma";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-06 20:23:02 +00:00
|
|
|
sha256 = "sha256-CXRBNnnhNV5LBIasVtmGrRG4ZXFGC7qNInU7Y0QsHbs=";
|
2019-10-27 15:03:42 +00:00
|
|
|
};
|
|
|
|
|
2022-05-09 15:18:15 +01:00
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-07-03 16:02:23 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
|
|
|
buildInputs = [ wayland wayland-protocols ]
|
2021-01-15 09:19:50 +00:00
|
|
|
++ lib.optional stdenv.isLinux libseccomp;
|
2020-02-29 13:39:55 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
mesonFlags = lib.optional stdenv.isLinux "-Dseccomp=enabled";
|
2019-10-27 15:03:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-16 03:33:21 +00:00
|
|
|
inherit (src.meta) homepage;
|
2019-10-27 15:03:42 +00: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 13:39:55 +00:00
|
|
|
changelog = "https://github.com/francma/wob/releases/tag/${version}";
|
2019-10-27 15:03:42 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
2021-02-16 03:33:21 +00:00
|
|
|
platforms = platforms.unix;
|
2019-10-27 15:03:42 +00:00
|
|
|
};
|
|
|
|
}
|