10 gsettings-desktop-schemas,
28 hasFeature = f: features == [ ] || builtins.elem f features;
30 rustPlatform.buildRustPackage rec {
34 src = fetchFromGitHub {
35 owner = "JakeStanger";
38 hash = "sha256-bvg7U7asuTONZgINQO8wSM2QjXAybvV7j5Ex/g6IDok=";
41 cargoHash = "sha256-Hlucn83Uf1XydRY4SYso+fJ5EvH2hOGmCFYuKgCeSuE=";
53 gsettings-desktop-schemas
56 ++ lib.optionals (hasFeature "http") [ openssl ]
57 ++ lib.optionals (hasFeature "volume") [ libpulseaudio ]
58 ++ lib.optionals (hasFeature "cairo") [ luajit ];
65 propagatedBuildInputs = [ gtk3 ];
67 runtimeDeps = [ luajitPackages.lgi ];
69 buildNoDefaultFeatures = features != [ ];
70 buildFeatures = features;
75 --prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
76 --prefix XDG_DATA_DIRS : "${librsvg}/share"
77 --prefix XDG_DATA_DIRS : "${webp-pixbuf-loader}/share"
78 --prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
81 --suffix PATH : "${lib.makeBinPath [ gtk3 ]}"
83 + lib.optionalString (hasFeature "cairo") ''
84 --prefix LUA_PATH : "./?.lua;${luajitPackages.lgi}/share/lua/5.1/?.lua;${luajitPackages.lgi}/share/lua/5.1/?/init.lua;${luajit}/share/lua/5.1/\?.lua;${luajit}/share/lua/5.1/?/init.lua"
85 --prefix LUA_CPATH : "./?.so;${luajitPackages.lgi}/lib/lua/5.1/?.so;${luajit}/lib/lua/5.1/?.so;${luajit}/lib/lua/5.1/loadall.so"
95 homepage = "https://github.com/JakeStanger/ironbar";
96 description = "Customizable gtk-layer-shell wlroots/sway bar written in Rust";
97 license = licenses.mit;
98 platforms = platforms.linux;
99 maintainers = with maintainers; [
104 mainProgram = "ironbar";