2023-03-29 11:45:40 +03:00
|
|
|
{
|
|
|
|
gtk3,
|
|
|
|
gdk-pixbuf,
|
2023-04-23 02:47:04 +03:00
|
|
|
librsvg,
|
|
|
|
webp-pixbuf-loader,
|
|
|
|
gobject-introspection,
|
|
|
|
glib-networking,
|
|
|
|
glib,
|
|
|
|
shared-mime-info,
|
|
|
|
gsettings-desktop-schemas,
|
|
|
|
wrapGAppsHook,
|
2023-03-29 11:45:40 +03:00
|
|
|
gtk-layer-shell,
|
2023-04-23 02:47:04 +03:00
|
|
|
gnome,
|
2023-03-29 11:45:40 +03:00
|
|
|
libxkbcommon,
|
|
|
|
openssl,
|
|
|
|
pkg-config,
|
2023-04-23 02:47:04 +03:00
|
|
|
hicolor-icon-theme,
|
2023-03-29 11:45:40 +03:00
|
|
|
rustPlatform,
|
|
|
|
lib,
|
|
|
|
version ? "git",
|
|
|
|
features ? [],
|
|
|
|
}:
|
2023-04-23 02:47:04 +03:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-03-29 11:45:40 +03:00
|
|
|
inherit version;
|
|
|
|
pname = "ironbar";
|
|
|
|
src = builtins.path {
|
|
|
|
name = "ironbar";
|
|
|
|
path = lib.cleanSource ../.;
|
|
|
|
};
|
|
|
|
buildNoDefaultFeatures =
|
|
|
|
if features == []
|
|
|
|
then false
|
|
|
|
else true;
|
|
|
|
buildFeatures = features;
|
2023-06-17 23:29:45 +03:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ../Cargo.lock;
|
|
|
|
};
|
2023-03-29 11:45:40 +03:00
|
|
|
cargoLock.lockFile = ../Cargo.lock;
|
2023-06-17 23:29:45 +03:00
|
|
|
cargoLock.outputHashes."stray-0.1.3" = "sha256-7mvsWZFmPWti9AiX67h6ZlWiVVRZRWIxq3pVaviOUtc=";
|
2023-04-23 02:47:04 +03:00
|
|
|
nativeBuildInputs = [pkg-config wrapGAppsHook gobject-introspection];
|
|
|
|
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];
|
|
|
|
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"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome.${pname}";
|
|
|
|
};
|
|
|
|
};
|
2023-03-29 11:45:40 +03:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/JakeStanger/ironbar";
|
|
|
|
description = "Customisable gtk-layer-shell wlroots/sway bar written in rust.";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2023-04-22 07:43:55 +03:00
|
|
|
mainProgram = "ironbar";
|
2023-03-29 11:45:40 +03:00
|
|
|
};
|
|
|
|
}
|