flake/version overlay: review fixes

* Improves the comments of `lib/flake-version-info.nix` and drops the
  `__`-prefix from the filename.
* `lib'` -> `lib0` in `nixpkgs/lib`.
* Drop the declaration of `trivial.version` in the overlay because this
  declaration already uses the final expressions of `versionSuffix` and
  `release` now.
* No need to fall back to `self.lastModified` anymore, this was a
  workaround for pre2.4 Nix.

Co-authored-by: Robert Hensing <robert@roberthensing.nl>
Co-authored-by: Silvan Mosberger <contact@infinisil.com>
This commit is contained in:
Maximilian Bosch 2023-10-31 13:38:29 +01:00
parent 78f5ed053a
commit ede5720a0d
No known key found for this signature in database
GPG key ID: D006A998C6ABFDF1
4 changed files with 23 additions and 20 deletions

View file

@ -9,7 +9,7 @@
nixpkgs = self;
};
libVersionInfoOverlay = import ./lib/__flake-version-info.nix self;
libVersionInfoOverlay = import ./lib/flake-version-info.nix self;
lib = (import ./lib).extend libVersionInfoOverlay;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;