diff options
| author | Kyren223 <kyren223@proton.me> | 2025-07-30 20:34:33 +0300 |
|---|---|---|
| committer | Kyren223 <kyren223@proton.me> | 2025-07-30 20:34:33 +0300 |
| commit | e4e70382471ded52af4da1872d8544da0428d3a4 (patch) | |
| tree | 788617ec78720908b2dfba4b02850bd9ecdb9c88 /flake.nix | |
| parent | 82808bcaf70f510d1abcdff2da52822a0fef588c (diff) | |
Converted buildDate to unix to prevent cache invalidation due to impure
date
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -22,19 +22,10 @@ inherit system overlays; }; version = (builtins.readFile ./VERSION); - buildDate = builtins.readFile ( - pkgs.runCommand "build-date" { } '' - ${pkgs.coreutils}/bin/date --date=@${toString self.lastModified} +%Y-%m-%d -u > $out - '' - ); - # buildDate = builtins.readFile ( - # pkgs.runCommand "build-date" { } '' - # date -u +'%Y-%m-%d' > $out - # '' - # ); + buildDate = toString self.lastModified; commit = if (builtins.hasAttr "rev" self) then (builtins.substring 0 7 self.rev) else "unknown"; # vendorHash = pkgs.lib.fakeHash; - vendorHash = "sha256-2yCQ40T5N90lKpPOc+i6vz+1mI/p4Ey6PdRCJbGD+TE="; + vendorHash = "sha256-dLhLFyrufv3dNlAw1QLlf9/LsHMcUaD9F2byKlC+35E="; src = let # Set this to `true` in order to show all of the source files |
