mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
style(nix): fmt flake.nix
This commit is contained in:
parent
9984b638b5
commit
b2749fee92
1 changed files with 24 additions and 23 deletions
47
flake.nix
47
flake.nix
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue