mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 06:41:03 +02:00
chore(nix): reformat package.nix
with alejandra
This commit is contained in:
parent
322fc0cdcc
commit
d97d07e98e
1 changed files with 59 additions and 53 deletions
|
@ -49,7 +49,8 @@
|
||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
|
[
|
||||||
gtk3
|
gtk3
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
glib
|
glib
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
libxkbcommon ]
|
libxkbcommon
|
||||||
|
]
|
||||||
++ lib.optionals (hasFeature "http") [openssl]
|
++ lib.optionals (hasFeature "http") [openssl]
|
||||||
++ lib.optionals (hasFeature "tray") [libdbusmenu-gtk3]
|
++ lib.optionals (hasFeature "tray") [libdbusmenu-gtk3]
|
||||||
++ lib.optionals (hasFeature "volume") [libpulseaudio]
|
++ lib.optionals (hasFeature "volume") [libpulseaudio]
|
||||||
|
@ -70,7 +72,8 @@
|
||||||
|
|
||||||
lgi = luajitPackages.lgi;
|
lgi = luajitPackages.lgi;
|
||||||
|
|
||||||
gappsWrapperArgs = ''
|
gappsWrapperArgs =
|
||||||
|
''
|
||||||
# Thumbnailers
|
# Thumbnailers
|
||||||
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
||||||
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
||||||
|
@ -107,38 +110,41 @@
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/JakeStanger/ironbar";
|
homepage = "https://github.com/JakeStanger/ironbar";
|
||||||
description =
|
description = "Customisable gtk-layer-shell wlroots/sway bar written in rust.";
|
||||||
"Customisable gtk-layer-shell wlroots/sway bar written in rust.";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
mainProgram = "ironbar";
|
mainProgram = "ironbar";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
flags = let
|
flags = let
|
||||||
noDefault = if features == [ ] then "" else "--no-default-features";
|
noDefault =
|
||||||
|
if features == []
|
||||||
featuresStr = if features == [ ] then
|
then ""
|
||||||
""
|
else "--no-default-features";
|
||||||
else
|
|
||||||
''-F "${builtins.concatStringsSep "," features}"'';
|
|
||||||
|
|
||||||
|
featuresStr =
|
||||||
|
if features == []
|
||||||
|
then ""
|
||||||
|
else ''-F "${builtins.concatStringsSep "," features}"'';
|
||||||
in [noDefault featuresStr];
|
in [noDefault featuresStr];
|
||||||
in if builderName == "naersk" then
|
in
|
||||||
builder.buildPackage (basePkg // { cargoBuildOptions = old: old ++ flags; })
|
if builderName == "naersk"
|
||||||
else if builderName == "crane" then
|
then builder.buildPackage (basePkg // {cargoBuildOptions = old: old ++ flags;})
|
||||||
builder.buildPackage (basePkg // {
|
else if builderName == "crane"
|
||||||
|
then
|
||||||
|
builder.buildPackage (basePkg
|
||||||
|
// {
|
||||||
cargoExtraArgs = builtins.concatStringsSep " " flags;
|
cargoExtraArgs = builtins.concatStringsSep " " flags;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
rustPlatform.buildRustPackage (basePkg // {
|
rustPlatform.buildRustPackage (basePkg
|
||||||
|
// {
|
||||||
buildNoDefaultFeatures = features != [];
|
buildNoDefaultFeatures = features != [];
|
||||||
|
|
||||||
buildFeatures = features;
|
buildFeatures = features;
|
||||||
cargoDeps = rustPlatform.importCargoLock {lockFile = ../Cargo.lock;};
|
cargoDeps = rustPlatform.importCargoLock {lockFile = ../Cargo.lock;};
|
||||||
cargoLock.lockFile = ../Cargo.lock;
|
cargoLock.lockFile = ../Cargo.lock;
|
||||||
cargoLock.outputHashes."stray-0.1.3" =
|
cargoLock.outputHashes."stray-0.1.3" = "sha256-7mvsWZFmPWti9AiX67h6ZlWiVVRZRWIxq3pVaviOUtc=";
|
||||||
"sha256-7mvsWZFmPWti9AiX67h6ZlWiVVRZRWIxq3pVaviOUtc=";
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue