Merge pull request #100363 from Ma27/flake-no-modification-rev

flake.nix: allow inclusion of `nixpkgs` as `path:/.../`
This commit is contained in:
Eelco Dolstra 2020-10-13 12:42:48 +02:00 committed by GitHub
commit 0acab870da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@
modules ++ [
{
system.nixos.versionSuffix =
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}";
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}";
system.nixos.revision = final.mkIf (self ? rev) self.rev;
system.build = {