Fix error: attribute 'lastModifiedDate' missing

Only applies to some versions of flakes, tested on nix 2.8.1.
This commit is contained in:
James Reynolds 2022-06-06 10:20:56 +01:00
parent 84a0fa0f34
commit 3d4832990c

View file

@ -33,11 +33,11 @@
in {
packages = genSystems (system: {
wlroots = pkgsFor.${system}.wlroots.overrideAttrs (prev: {
version = mkVersion inputs.wlroots.lastModifiedDate;
version = mkVersion (toString (inputs.wlroots.lastModifiedDate or inputs.wlroots.lastModified or "19700101"));
src = inputs.wlroots;
});
default = pkgsFor.${system}.callPackage ./nix/default.nix {
version = mkVersion self.lastModifiedDate;
version = mkVersion (toString (self.lastModifiedDate or self.lastModified or "19700101"));
inherit (self.packages.${system}) wlroots;
};
});