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

36 lines
1007 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
2019-12-24 12:24:51 +00:00
, meson, ninja, pkg-config, scdoc, wayland # wayland-scanner
2020-02-29 13:39:55 +00:00
, wayland-protocols, libseccomp
2019-10-27 15:03:42 +00:00
}:
stdenv.mkDerivation rec {
pname = "wob";
2020-08-10 12:31:22 +01:00
version = "0.10";
2019-10-27 15:03:42 +00:00
src = fetchFromGitHub {
owner = "francma";
repo = pname;
rev = version;
2020-08-10 12:31:22 +01:00
sha256 = "0v7xm8zd9237v5j5h79pd0x6dkal5fgg1ly9knssjpv3hswwyv40";
2019-10-27 15:03:42 +00:00
};
2019-12-24 12:24:51 +00:00
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland ];
2020-02-29 13:39:55 +00:00
buildInputs = [ 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
meta = with lib; {
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.
'';
inherit (src.meta) homepage;
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;
platforms = platforms.unix;
maintainers = with maintainers; [ primeos ];
};
}