nixpkgs/pkgs/applications/misc/sfwbar/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.0 KiB
Nix
Raw Normal View History

2023-05-15 18:01:23 +00:00
{ lib
, stdenv
, fetchFromGitHub
, gtk3
, meson
, ninja
, json_c
, pkg-config
, gtk-layer-shell
, libpulseaudio
, libmpdclient
, libxkbcommon
2023-10-11 02:34:01 +00:00
, alsa-lib
, makeWrapper
2023-05-15 18:01:23 +00:00
,
}:
stdenv.mkDerivation rec {
pname = "sfwbar";
2023-10-11 02:34:01 +00:00
version = "1.0_beta13";
2023-05-15 18:01:23 +00:00
src = fetchFromGitHub {
owner = "LBCrion";
repo = pname;
rev = "v${version}";
2023-10-11 02:34:01 +00:00
hash = "sha256-7oiuTEqdXDReKdakJX6+HRaSi1XovM+MkHFkaFZtq64=";
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
2023-05-15 18:01:23 +00:00
];
nativeBuildInputs = [
meson
ninja
pkg-config
2023-10-11 02:34:01 +00:00
makeWrapper
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
'';
2023-05-15 18:01:23 +00:00
meta = with lib; {
homepage = "https://github.com/LBCrion/sfwbar";
description = "A flexible taskbar application for wayland compositors, designed with a stacking layout in mind";
mainProgram = "sfwbar";
2023-05-15 18:01:23 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ NotAShelf ];
license = licenses.gpl3Only;
};
}