mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
fix(nix): Attempt to fix image blurriness
This commit is contained in:
parent
6fd69d657c
commit
338f5a0e1b
1 changed files with 31 additions and 3 deletions
|
@ -1,16 +1,26 @@
|
||||||
{
|
{
|
||||||
gtk3,
|
gtk3,
|
||||||
gdk-pixbuf,
|
gdk-pixbuf,
|
||||||
|
librsvg,
|
||||||
|
webp-pixbuf-loader,
|
||||||
|
gobject-introspection,
|
||||||
|
glib-networking,
|
||||||
|
glib,
|
||||||
|
shared-mime-info,
|
||||||
|
gsettings-desktop-schemas,
|
||||||
|
wrapGAppsHook,
|
||||||
gtk-layer-shell,
|
gtk-layer-shell,
|
||||||
|
gnome,
|
||||||
libxkbcommon,
|
libxkbcommon,
|
||||||
openssl,
|
openssl,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
hicolor-icon-theme,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
lib,
|
lib,
|
||||||
version ? "git",
|
version ? "git",
|
||||||
features ? [],
|
features ? [],
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage rec {
|
||||||
inherit version;
|
inherit version;
|
||||||
pname = "ironbar";
|
pname = "ironbar";
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
|
@ -24,8 +34,26 @@ rustPlatform.buildRustPackage {
|
||||||
buildFeatures = features;
|
buildFeatures = features;
|
||||||
cargoDeps = rustPlatform.importCargoLock {lockFile = ../Cargo.lock;};
|
cargoDeps = rustPlatform.importCargoLock {lockFile = ../Cargo.lock;};
|
||||||
cargoLock.lockFile = ../Cargo.lock;
|
cargoLock.lockFile = ../Cargo.lock;
|
||||||
nativeBuildInputs = [pkg-config];
|
nativeBuildInputs = [pkg-config wrapGAppsHook gobject-introspection];
|
||||||
buildInputs = [gtk3 gdk-pixbuf gtk-layer-shell libxkbcommon openssl];
|
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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/JakeStanger/ironbar";
|
homepage = "https://github.com/JakeStanger/ironbar";
|
||||||
description = "Customisable gtk-layer-shell wlroots/sway bar written in rust.";
|
description = "Customisable gtk-layer-shell wlroots/sway bar written in rust.";
|
||||||
|
|
Loading…
Add table
Reference in a new issue