2024-06-12 09:59:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gtk3,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
json_c,
|
|
|
|
pkg-config,
|
|
|
|
gtk-layer-shell,
|
|
|
|
libpulseaudio,
|
|
|
|
libmpdclient,
|
|
|
|
libxkbcommon,
|
|
|
|
alsa-lib,
|
|
|
|
makeWrapper,
|
2024-06-24 08:38:18 +00:00
|
|
|
docutils,
|
2024-08-31 09:35:00 +00:00
|
|
|
wayland-scanner,
|
2023-05-15 18:01:23 +00:00
|
|
|
}:
|
2024-06-12 10:01:02 +00:00
|
|
|
let
|
2024-11-11 14:25:29 +00:00
|
|
|
version = "1.0_beta16";
|
2024-06-12 10:01:02 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2023-05-15 18:01:23 +00:00
|
|
|
pname = "sfwbar";
|
2024-06-12 10:01:02 +00:00
|
|
|
inherit version;
|
2023-05-15 18:01:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LBCrion";
|
2024-06-12 10:01:02 +00:00
|
|
|
repo = "sfwbar";
|
2023-05-15 18:01:23 +00:00
|
|
|
rev = "v${version}";
|
2024-11-11 14:25:29 +00:00
|
|
|
hash = "sha256-jMEbw3Xla2cod/oKFQ4bD3sTHi7DZ0deG0H0Yt0Y7ck=";
|
2023-05-15 18:01:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
json_c
|
|
|
|
gtk-layer-shell
|
|
|
|
libpulseaudio
|
|
|
|
libmpdclient
|
|
|
|
libxkbcommon
|
2023-10-11 02:34:01 +00:00
|
|
|
alsa-lib
|
2024-06-24 08:38:18 +00:00
|
|
|
docutils # for rst2man
|
2023-05-15 18:01:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-10-11 02:34:01 +00:00
|
|
|
makeWrapper
|
2024-08-31 09:35:00 +00:00
|
|
|
wayland-scanner
|
2023-05-15 18:01:23 +00:00
|
|
|
];
|
|
|
|
|
2023-10-11 02:34:01 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/sfwbar \
|
|
|
|
--suffix XDG_DATA_DIRS : $out/share
|
|
|
|
'';
|
|
|
|
|
2024-06-12 09:59:13 +00:00
|
|
|
meta = {
|
2023-05-15 18:01:23 +00:00
|
|
|
homepage = "https://github.com/LBCrion/sfwbar";
|
|
|
|
description = "Flexible taskbar application for wayland compositors, designed with a stacking layout in mind";
|
2024-06-12 09:59:13 +00:00
|
|
|
changelog = "https://github.com/LBCrion/sfwbar/releases/tag/v${version}";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "sfwbar";
|
2024-06-12 09:59:13 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
luftmensch-luftmensch
|
|
|
|
NotAShelf
|
|
|
|
];
|
|
|
|
license = lib.licenses.gpl3Only;
|
2023-05-15 18:01:23 +00:00
|
|
|
};
|
|
|
|
}
|