Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: cf542e991cf6
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: f7fe019d53e6
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 13, 2020

  1. flake.nix: allow inclusion of nixpkgs as path:/.../

    When adding `nixpkgs` as flake-input using the `path`-fetcher, you
    currently get the following error since neither `lastModifiedDate` nor
    `lastModified` are stored in `flake.lock` for paths:
    
    ```
    error: --- EvalError --------------------------------------------------------------------------- nix-build
    at: (48:71) in file: /nix/store/147clg8svaxyj7pl80ra9kmmm72mdg94-source/flake.nix
    
        47|                   system.nixos.versionSuffix =
        48|                     ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}";
          |                                                                       ^
        49|                   system.nixos.revision = final.mkIf (self ? rev) self.rev;
    
    attribute 'lastModified' missing
    ```
    
    This patch adds the fallback-value `19700101` to `versionSuffix` if none
    of `lastModified{,Date}` are set in the lockfile.
    
    (cherry picked from commit 3743c42)
    Ma27 committed Oct 13, 2020
    Copy the full SHA
    f7fe019 View commit details
    Browse the repository at this point in the history