mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 11:24:24 +02:00
build(nix): add luajit and lgi support
This commit is contained in:
parent
653d1d6aed
commit
a62010ee4f
3 changed files with 34 additions and 3 deletions
|
@ -106,9 +106,11 @@
|
|||
program = "${pkgs.ironbar}/bin/ironbar";
|
||||
};
|
||||
});
|
||||
|
||||
devShells = genSystems (system: let
|
||||
pkgs = pkgsFor system;
|
||||
rust = mkRustToolchain pkgs;
|
||||
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
|
@ -128,11 +130,15 @@
|
|||
gsettings-desktop-schemas
|
||||
libxkbcommon
|
||||
libpulseaudio
|
||||
luajit
|
||||
luajitPackages.lgi
|
||||
];
|
||||
|
||||
RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
homeManagerModules.default = {
|
||||
config,
|
||||
lib,
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
libxkbcommon,
|
||||
libpulseaudio,
|
||||
openssl,
|
||||
luajit,
|
||||
luajitPackages,
|
||||
pkg-config,
|
||||
hicolor-icon-theme,
|
||||
rustPlatform,
|
||||
|
@ -30,11 +32,28 @@
|
|||
name = "ironbar";
|
||||
path = lib.cleanSource ../.;
|
||||
};
|
||||
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 libpulseaudio openssl];
|
||||
propagatedBuildInputs = [
|
||||
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
|
||||
libpulseaudio
|
||||
openssl
|
||||
luajit
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ gtk3 ];
|
||||
|
||||
lgi = luajitPackages.lgi;
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
# Thumbnailers
|
||||
|
@ -45,6 +64,10 @@
|
|||
|
||||
# gtk-launch
|
||||
--suffix PATH : "${lib.makeBinPath [ gtk3 ]}"
|
||||
|
||||
# cairo
|
||||
--prefix LUA_PATH : "./?.lua;${lgi}/share/lua/5.1/?.lua;${lgi}/share/lua/5.1/?/init.lua;${luajit}/share/lua/5.1/\?.lua;${luajit}/share/lua/5.1/?/init.lua"
|
||||
--prefix LUA_CPATH : "./?.so;${lgi}/lib/lua/5.1/?.so;${luajit}/lib/lua/5.1/?.so;${luajit}/lib/lua/5.1/loadall.so"
|
||||
)
|
||||
'';
|
||||
passthru = {
|
||||
|
|
|
@ -10,6 +10,8 @@ pkgs.mkShell {
|
|||
gcc
|
||||
openssl
|
||||
libpulseaudio
|
||||
luajit
|
||||
luajitPackages.lgi
|
||||
];
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
|
|
Loading…
Add table
Reference in a new issue