2023-10-09 19:29:22 +00:00
|
|
|
{ gtk3
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
, webp-pixbuf-loader
|
|
|
|
, gobject-introspection
|
|
|
|
, glib-networking
|
|
|
|
, glib
|
|
|
|
, shared-mime-info
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk-layer-shell
|
|
|
|
, gnome
|
|
|
|
, libxkbcommon
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, rustPlatform
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ironbar";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.14.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JakeStanger";
|
|
|
|
repo = "ironbar";
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-y4w4i/IVe1+wjB2tsCPQH6c7XTl93u45Q0pXFi3TY1E=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
cargoHash = "sha256-h5yNJM+NvX/Hi86iSegHWevPcPZeDmJ4y/qNr3G20Qg=";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk-layer-shell
|
|
|
|
glib-networking
|
|
|
|
shared-mime-info
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
hicolor-icon-theme
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
libxkbcommon
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Thumbnailers
|
|
|
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${webp-pixbuf-loader}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
|
|
|
|
# gtk-launch
|
|
|
|
--suffix PATH : "${lib.makeBinPath [ gtk3 ]}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/JakeStanger/ironbar";
|
|
|
|
description = "Customizable gtk-layer-shell wlroots/sway bar written in Rust";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ yavko donovanglover jakestanger ];
|
|
|
|
mainProgram = "ironbar";
|
|
|
|
};
|
|
|
|
}
|