Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, pkg-config, xorg, libconfig }: 2 3stdenv.mkDerivation rec { 4 pname = "xob"; 5 version = "0.3"; 6 7 src = fetchFromGitHub { 8 owner = "florentc"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "1x4aafiyd9k4y8cmvn7rgfif3g5s5hhlbj5nz71qsyqg21nn7hrw"; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ xorg.libX11 xorg.libXrender libconfig ]; 16 17 makeFlags = [ "prefix=$(out)" ]; 18 19 meta = with lib; { 20 description = "A lightweight overlay bar for the X Window System"; 21 longDescription = '' 22 A lightweight configurable overlay volume/backlight/progress/anything bar 23 for the X Window System (and Wayland compositors with XWayland). Each 24 time a new value is read on the standard input, it is displayed as a 25 tv-like bar over other windows. It then vanishes after a configurable 26 amount of time. A value followed by a bang '!' is displayed using an 27 alternate color to account for special states (e.g. muted audio). There 28 is also support for overflows (when the value exceeds the maximum). 29 ''; 30 inherit (src.meta) homepage; 31 license = licenses.gpl3Plus; 32 platforms = platforms.unix; 33 maintainers = with maintainers; [ florentc ]; 34 }; 35}