Nix Flake: Fix overlay (again) (#3196)
parent
0b6476da32
commit
50476edc98
13
flake.nix
13
flake.nix
|
@ -46,8 +46,11 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
overlays.default = final: prev: {
|
overlays = {
|
||||||
|
default = self.overlays.waybar;
|
||||||
|
waybar = final: prev: {
|
||||||
waybar = final.callPackage ./nix/default.nix {
|
waybar = final.callPackage ./nix/default.nix {
|
||||||
|
waybar = prev.waybar;
|
||||||
# take the first "version: '...'" from meson.build
|
# take the first "version: '...'" from meson.build
|
||||||
version =
|
version =
|
||||||
(builtins.head (builtins.split "'"
|
(builtins.head (builtins.split "'"
|
||||||
|
@ -57,11 +60,11 @@
|
||||||
+ "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
+ "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
packages = genSystems (pkgs:
|
packages = genSystems (pkgs: {
|
||||||
let packages = self.overlays.default pkgs pkgs;
|
default = self.packages.${pkgs.stdenv.hostPlatform.system}.waybar;
|
||||||
in packages // {
|
inherit (pkgs) waybar;
|
||||||
default = packages.waybar;
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue