nixpkgs/pkgs/by-name/sf/sfwbar/package.nix

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

68 lines
1.2 KiB
Nix
Raw Normal View History

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,
2023-05-15 18:01:23 +00:00
}:
2024-06-12 10:01:02 +00:00
let
2024-06-24 08:38:18 +00:00
version = "1.0_beta15";
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-06-24 08:38:18 +00:00
hash = "sha256-nNtnHOM/ArbYx5ZGlnxgMB33YaGAOigxgW4SAywg66Q=";
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
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}";
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
};
}