Nix Flake: Fix overlay (again) (#3196)
parent
0b6476da32
commit
50476edc98
31
flake.nix
31
flake.nix
|
@ -46,22 +46,25 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
overlays.default = final: prev: {
|
overlays = {
|
||||||
waybar = final.callPackage ./nix/default.nix {
|
default = self.overlays.waybar;
|
||||||
# take the first "version: '...'" from meson.build
|
waybar = final: prev: {
|
||||||
version =
|
waybar = final.callPackage ./nix/default.nix {
|
||||||
(builtins.head (builtins.split "'"
|
waybar = prev.waybar;
|
||||||
(builtins.elemAt
|
# take the first "version: '...'" from meson.build
|
||||||
(builtins.split " version: '" (builtins.readFile ./meson.build))
|
version =
|
||||||
2)))
|
(builtins.head (builtins.split "'"
|
||||||
+ "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
(builtins.elemAt
|
||||||
|
(builtins.split " version: '" (builtins.readFile ./meson.build))
|
||||||
|
2)))
|
||||||
|
+ "+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