1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 18:51:04 +02:00

style(nix): fmt flake.nix

This commit is contained in:
yavko 2023-02-07 22:32:21 -08:00
parent 9984b638b5
commit b2749fee92
No known key found for this signature in database
GPG key ID: F07D19A32407F857

View file

@ -31,15 +31,15 @@
]; ];
}; };
mkRustToolchain = pkgs: pkgs.rust-bin.stable.latest.default; mkRustToolchain = pkgs: pkgs.rust-bin.stable.latest.default;
defaultFeatures = [ defaultFeatures = [
"http" "http"
"config+all" "config+all"
"clock" "clock"
"music+all" "music+all"
"sys_info" "sys_info"
"tray" "tray"
"workspaces+all" "workspaces+all"
]; ];
in { in {
overlays.default = final: prev: let overlays.default = final: prev: let
rust = mkRustToolchain final; rust = mkRustToolchain final;
@ -49,22 +49,23 @@
rustc = rust; rustc = rust;
}; };
in { in {
ironbar = features: rustPlatform.buildRustPackage { ironbar = features:
pname = "ironbar"; rustPlatform.buildRustPackage {
version = self.rev or "dirty"; pname = "ironbar";
src = builtins.path { version = self.rev or "dirty";
name = "ironbar"; src = builtins.path {
path = prev.lib.cleanSource ./.; name = "ironbar";
path = prev.lib.cleanSource ./.;
};
buildNoDefaultFeatures = true;
buildFeatures = features;
cargoDeps = rustPlatform.importCargoLock {lockFile = ./Cargo.lock;};
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with prev; [pkg-config];
buildInputs = with prev; [gtk3 gdk-pixbuf gtk-layer-shell libxkbcommon openssl];
}; };
buildNoDefaultFeatures = true;
buildFeatures = features;
cargoDeps = rustPlatform.importCargoLock {lockFile = ./Cargo.lock;};
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with prev; [pkg-config];
buildInputs = with prev; [gtk3 gdk-pixbuf gtk-layer-shell libxkbcommon openssl];
};
}; };
packageBuilder = genSystems(system: self.packages.${system}.ironbar); packageBuilder = genSystems (system: self.packages.${system}.ironbar);
packages = genSystems ( packages = genSystems (
system: let system: let
pkgs = pkgsFor system; pkgs = pkgsFor system;