Error: unsupported tarball input attribute 'lastModified'

Hi there! I am having a strange problem with my nix setup.

I get the following error when running nix flake update

error:
       … while updating the lock file of flake 'git+file:///Users/name/Desktop/CODE/data-commons-mvp/data-commons-mvp'

       … while updating the flake input 'holochain'

       error: unsupported tarball input attribute 'lastModified'

The error started appearing after I forked a npm package and then installed it from a local repo. I then deleted my flake.lock and ran the update command.

I have now reverted all changes however I cannot run the flake update command.

Are there any suggestions about how I may resolve this ?

thanks

Can you share your inputs?

Sure, although my inputs didnt change, only the dependency change from an external npm package to a local one

  inputs = {
    nixpkgs.follows = "holochain/nixpkgs";

    versions.url = "github:holochain/holochain?dir=versions/0_3_rc";

    holochain = {
      url = "github:holochain/holochain";
      inputs.versions.follows = "versions";
    };
  };

Just asked the same question in Matrix (Props at @K900), here’s the answer:

$ nix shell "github:NixOS/nix/2.18.4"
$ nix build <path-to-flake>#nixosConfigurations.<machine>.config.system.build.toplevel
$ sudo nix-env --profile /nix/var/nix/profiles/system --set ./result
$ ./result/bin/switch-to-configuration switch
1 Like

Awesome, thanks!

In my case I found out that:

“This has been caused by a Holonix update that used a newer Nix version” which was due to the Holonix package changing there used version

1 Like